Skip to content

Commit e8022e3

Browse files
author
wamisnet
committed
Nefry BT R2対応
1 parent a12ed23 commit e8022e3

File tree

4 files changed

+115
-0
lines changed

4 files changed

+115
-0
lines changed

boards.txt

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,58 @@ menu.DebugLevel=Core Debug Level
66

77
##############################################################
88

9+
nefrybtr2.name=Nefry BT R2
10+
11+
nefrybtr2.upload.tool=esptool
12+
nefrybtr2.upload.maximum_size=1703936
13+
nefrybtr2.upload.maximum_data_size=294912
14+
nefrybtr2.upload.wait_for_upload_port=true
15+
16+
nefrybtr2.serial.disableDTR=true
17+
nefrybtr2.serial.disableRTS=true
18+
19+
nefrybtr2.build.mcu=esp32
20+
nefrybtr2.build.core=esp32
21+
nefrybtr2.build.variant=nefrybt-r2
22+
nefrybtr2.build.board=Nefry_BT_R2
23+
nefrybtr2.build.partitions=default
24+
25+
nefrybtr2.build.f_cpu=240000000L
26+
nefrybtr2.build.flash_mode=dio
27+
nefrybtr2.build.flash_size=4MB
28+
nefrybtr2.build.boot=bootloader
29+
nefrybtr2.build.flash_freq=80m
30+
31+
nefrybtr2.menu.UploadSpeed.921600=921600
32+
nefrybtr2.menu.UploadSpeed.921600.upload.speed=921600
33+
nefrybtr2.menu.UploadSpeed.115200=115200
34+
nefrybtr2.menu.UploadSpeed.115200.upload.speed=115200
35+
nefrybtr2.menu.UploadSpeed.256000.windows=256000
36+
nefrybtr2.menu.UploadSpeed.256000.upload.speed=256000
37+
nefrybtr2.menu.UploadSpeed.230400.windows.upload.speed=256000
38+
nefrybtr2.menu.UploadSpeed.230400=230400
39+
nefrybtr2.menu.UploadSpeed.230400.upload.speed=230400
40+
nefrybtr2.menu.UploadSpeed.460800.linux=460800
41+
nefrybtr2.menu.UploadSpeed.460800.macosx=460800
42+
nefrybtr2.menu.UploadSpeed.460800.upload.speed=460800
43+
nefrybtr2.menu.UploadSpeed.512000.windows=512000
44+
nefrybtr2.menu.UploadSpeed.512000.upload.speed=512000
45+
46+
nefrybtr2.menu.DebugLevel.none=None
47+
nefrybtr2.menu.DebugLevel.none.build.code_debug=0
48+
nefrybtr2.menu.DebugLevel.error=Error
49+
nefrybtr2.menu.DebugLevel.error.build.code_debug=1
50+
nefrybtr2.menu.DebugLevel.warn=Warn
51+
nefrybtr2.menu.DebugLevel.warn.build.code_debug=2
52+
nefrybtr2.menu.DebugLevel.info=Info
53+
nefrybtr2.menu.DebugLevel.info.build.code_debug=3
54+
nefrybtr2.menu.DebugLevel.debug=Debug
55+
nefrybtr2.menu.DebugLevel.debug.build.code_debug=4
56+
nefrybtr2.menu.DebugLevel.verbose=Verbose
57+
nefrybtr2.menu.DebugLevel.verbose.build.code_debug=5
58+
59+
##############################################################
60+
961
nefrybt.name=Nefry BT
1062

1163
nefrybt.upload.tool=esptool

variants/esp32/pins_arduino.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ static const uint8_t RX = 3;
1717
static const uint8_t SDA = 21;
1818
static const uint8_t SCL = 22;
1919

20+
//Display
21+
static const uint8_t SDA2 = 21;
22+
static const uint8_t SCL2 = 22;
23+
2024
static const uint8_t SS = 5;
2125
static const uint8_t MOSI = 23;
2226
static const uint8_t MISO = 19;

variants/nefrybt-r2/pins_arduino.h

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
6+
#define EXTERNAL_NUM_INTERRUPTS 16
7+
#define NUM_DIGITAL_PINS 40
8+
#define NUM_ANALOG_INPUTS 16
9+
10+
#define analogInputToDigitalPin(p) (((p)<20)?(esp32_adc2gpio[(p)]):-1)
11+
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
12+
#define digitalPinHasPWM(p) (p < 34)
13+
14+
static const uint8_t TX = 1;
15+
static const uint8_t RX = 3;
16+
17+
static const uint8_t SDA = 21;
18+
static const uint8_t SCL = 22;
19+
20+
//Display
21+
static const uint8_t SDA2 = 17;
22+
static const uint8_t SCL2 = 5;
23+
24+
static const uint8_t SS = 25;
25+
static const uint8_t MOSI = 23;
26+
static const uint8_t MISO = 19;
27+
static const uint8_t SCK = 18;
28+
29+
static const uint8_t D0 = 22;
30+
static const uint8_t D1 = 21;
31+
static const uint8_t D2 = 23;
32+
static const uint8_t D3 = 19;
33+
static const uint8_t D4 = 18;
34+
static const uint8_t D5 = 25;
35+
static const uint8_t D6 = 26;
36+
static const uint8_t D7 = 13;
37+
static const uint8_t D8 = 14;
38+
39+
static const uint8_t A0 = 33;
40+
static const uint8_t A1 = 32;
41+
static const uint8_t A2 = 39;
42+
static const uint8_t A3 = 36;
43+
44+
static const uint8_t T0 = 13;
45+
static const uint8_t T1 = 14;
46+
static const uint8_t T2 = 32;
47+
static const uint8_t T3 = 33;
48+
static const uint8_t T4 = 27;
49+
50+
static const uint8_t DAC1 = 25;
51+
static const uint8_t DAC2 = 26;
52+
53+
static const uint8_t boardId = 2;//Nefry BT R2
54+
55+
#endif /* Pins_Arduino_h */

variants/nefrybt/pins_arduino.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ static const uint8_t RX = 3;
1717
static const uint8_t SDA = 21;
1818
static const uint8_t SCL = 22;
1919

20+
//Display
21+
static const uint8_t SDA2 = 21;
22+
static const uint8_t SCL2 = 22;
23+
2024
static const uint8_t SS = 25;
2125
static const uint8_t MOSI = 23;
2226
static const uint8_t MISO = 19;

0 commit comments

Comments
 (0)