mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-19 08:17:26 +00:00
Compare commits
No commits in common. "ffb497b667a629a70f12ebc68b168c008d9f1b34" and "4baa81d7e9f4e621ccf80e13071c75f233c090be" have entirely different histories.
ffb497b667
...
4baa81d7e9
@ -1581,6 +1581,10 @@ void Screen::handleSetOn(bool on, FrameCallback einkScreensaver)
|
|||||||
digitalWrite(VTFT_LEDA, TFT_BACKLIGHT_ON);
|
digitalWrite(VTFT_LEDA, TFT_BACKLIGHT_ON);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef TFT_BL
|
||||||
|
pinMode(TFT_BL, OUTPUT);
|
||||||
|
digitalWrite(TFT_BL, HIGH);
|
||||||
|
#endif
|
||||||
#if defined(M5STACK_CORE2)
|
#if defined(M5STACK_CORE2)
|
||||||
M5.Power.Axp192.setDCDC3(1000);
|
M5.Power.Axp192.setDCDC3(1000);
|
||||||
M5.Display.setBrightness(130);
|
M5.Display.setBrightness(130);
|
||||||
@ -1596,6 +1600,10 @@ void Screen::handleSetOn(bool on, FrameCallback einkScreensaver)
|
|||||||
#endif
|
#endif
|
||||||
LOG_INFO("Turn off screen");
|
LOG_INFO("Turn off screen");
|
||||||
dispdev->displayOff();
|
dispdev->displayOff();
|
||||||
|
#ifdef TFT_BL
|
||||||
|
pinMode(TFT_BL, OUTPUT);
|
||||||
|
digitalWrite(TFT_BL, LOW);
|
||||||
|
#endif
|
||||||
#if defined(M5STACK_CORE2)
|
#if defined(M5STACK_CORE2)
|
||||||
M5.Power.Axp192.setDCDC3(0);
|
M5.Power.Axp192.setDCDC3(0);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
#define BUTTON_NEED_PULLUP
|
#define BUTTON_NEED_PULLUP
|
||||||
#define HAS_AXP192
|
|
||||||
#define I2C_SDA 21 // For AXP192
|
|
||||||
#define I2C_SCL 22 // For AXP192
|
|
||||||
|
|
||||||
#undef LORA_SCK
|
#undef LORA_SCK
|
||||||
#undef LORA_MISO
|
#undef LORA_MISO
|
||||||
|
Loading…
Reference in New Issue
Block a user