kopia lustrzana https://github.com/meshtastic/firmware
Added support for SugarCube device (#8187)
* Added support for SugarCube device * Update variants/esp32/sugarcube/platformio.ini Co-authored-by: Austin <vidplace7@gmail.com> * added buzzer pin * Apply PR comments * Fix MR comments --------- Co-authored-by: Austin <vidplace7@gmail.com>pull/8400/head^2
rodzic
b4dea63f44
commit
05c176c16a
|
|
@ -5,3 +5,12 @@ board_check = true
|
|||
build_flags =
|
||||
${esp32_base.build_flags} -D TLORA_V2_1_16 -I variants/esp32/tlora_v2_1_16
|
||||
upload_speed = 115200
|
||||
|
||||
[env:sugarcube]
|
||||
extends = env:tlora-v2-1-1_6
|
||||
board_level = extra
|
||||
build_flags =
|
||||
${env:tlora-v2-1-1_6.build_flags}
|
||||
-DBUTTON_PIN=0
|
||||
-DPIN_BUZZER=25
|
||||
-DLED_PIN=-1
|
||||
|
|
@ -8,7 +8,11 @@
|
|||
#define I2C_SDA 21 // I2C pins for this board
|
||||
#define I2C_SCL 22
|
||||
|
||||
#if defined(LED_PIN) && LED_PIN == -1
|
||||
#undef LED_PIN
|
||||
#else
|
||||
#define LED_PIN 25 // If defined we will blink this LED
|
||||
#endif
|
||||
|
||||
#define USE_RF95
|
||||
#define LORA_DIO0 26 // a No connect on the SX1262 module
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue