Skip to content

Conversation

@JamesDavid
Copy link

Add OLED display support option for boards like TTGO ESP32 module with OLED display and 18650 battery holder.
See, e.g., https://www.areresearch.net/2018/01/how-to-use-ttgo-esp32-module-with-oled.html

The display shows:
the WiFi SSID
Battery Voltage
Frequency Name
Frequency GHz
Pilot Name
Last Lap Time

This pull request also changes the LED pin to use the built in aux LED on pin 16 on the TTGO board.

#else

#define PIN_LED 21
#define PIN_LED 16 //was 21
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add a separate target that supports the OLED display instead of modifying an existing one? Or add guards like :

#ifdef ESP32_OLED
  #define PIN_LED 16 //was 21
#else
  #define PIN_LED 21
#endif

rx.init();
buzzer.init(PIN_BUZZER, BUZZER_INVERTED);
led.init(PIN_LED, false);
led.init(PIN_LED, true); //was false
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

@L1cardo
Copy link
Contributor

L1cardo commented Oct 14, 2024

Also would be nice to move the new target to target folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants