Skip to content

Commit 05c176c

Browse files
igorka48vidplace7
andauthored
Added support for SugarCube device (#8187)
* Added support for SugarCube device * Update variants/esp32/sugarcube/platformio.ini Co-authored-by: Austin <[email protected]> * added buzzer pin * Apply PR comments * Fix MR comments --------- Co-authored-by: Austin <[email protected]>
1 parent b4dea63 commit 05c176c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

variants/esp32/tlora_v2_1_16/platformio.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,12 @@ board_check = true
55
build_flags =
66
${esp32_base.build_flags} -D TLORA_V2_1_16 -I variants/esp32/tlora_v2_1_16
77
upload_speed = 115200
8+
9+
[env:sugarcube]
10+
extends = env:tlora-v2-1-1_6
11+
board_level = extra
12+
build_flags =
13+
${env:tlora-v2-1-1_6.build_flags}
14+
-DBUTTON_PIN=0
15+
-DPIN_BUZZER=25
16+
-DLED_PIN=-1

variants/esp32/tlora_v2_1_16/variant.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
#define I2C_SDA 21 // I2C pins for this board
99
#define I2C_SCL 22
1010

11+
#if defined(LED_PIN) && LED_PIN == -1
12+
#undef LED_PIN
13+
#else
1114
#define LED_PIN 25 // If defined we will blink this LED
15+
#endif
1216

1317
#define USE_RF95
1418
#define LORA_DIO0 26 // a No connect on the SX1262 module

0 commit comments

Comments
 (0)