Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve TTGO Lora32 v1.0 support #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ build_flags =
-D MONITOR_SPEED=${common.monitor_speed}
-D LMIC_PRINTF_TO=Serial
-D USE_SERIAL
; -D USE_LED ; NO ONBOARD USER LED
-D USE_LED
-D USE_DISPLAY


Expand Down
9 changes: 4 additions & 5 deletions src/boards/bsf_ttgo_lora32_v1.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
*
* Leds GPIO
* ---- ----
* LED - Incorrectly defined in BSP as LED_BUILTIN (2).
* LED 2 Incorrectly defined in BSP as LED_BUILTIN (2).
*
* I2C/Display GPIO
* --- ----
* SDA <――――――――――> 4 Not SDA! (OLED_SDA)
* SCL <――――――――――> 15 Not SCL! (OLED_SCL)
* RST OLED_RST is defined in BSP but not connected to GPIO.
* RST <――――――――――> 16 OLED_RST is defined in BSP but not connected to GPIO.
*
* SPI/LoRa GPIO
* --- ----
Expand Down Expand Up @@ -112,13 +112,12 @@ const lmic_pinmap lmic_pins = {
#endif

#ifdef USE_LED
#error Invalid option: USE_LED. This board has no onboard user LED.
// EasyLed led(<external LED GPIO>, EasyLed::ActiveLevel::Low);
EasyLed led(2, EasyLed::ActiveLevel::High);
#endif

#ifdef USE_DISPLAY
// Create U8x8 instance for SSD1306 OLED display (no reset) using hardware I2C.
U8X8_SSD1306_128X64_NONAME_HW_I2C display(/*rst*/ U8X8_PIN_NONE, /*scl*/ 15, /*sda*/ 4);
U8X8_SSD1306_128X64_NONAME_HW_I2C display(/*rst*/ 16, /*scl*/ 15, /*sda*/ 4);
#endif


Expand Down