Fixed display address missing https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/issues/276
This commit is contained in:
parent
a48dc1c65d
commit
c486caf7e5
98 changed files with 441 additions and 147 deletions
|
|
@ -450,7 +450,7 @@ void loopPMU(void (*pressed_cb)(void))
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef DISPLAY_ADDR
|
||||
#ifdef DISPLAY_MODEL
|
||||
bool beginDisplay()
|
||||
{
|
||||
Wire.beginTransmission(DISPLAY_ADDR);
|
||||
|
|
@ -810,7 +810,7 @@ void setupBoards(bool disable_u8g2 )
|
|||
|
||||
beginSDCard();
|
||||
|
||||
#ifdef DISPLAY_ADDR
|
||||
#ifdef HAS_DISPLAY
|
||||
if (!disable_u8g2) {
|
||||
beginDisplay();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,6 +35,12 @@
|
|||
|
||||
#include <esp_mac.h>
|
||||
|
||||
|
||||
#ifndef DISPLAY_ADDR
|
||||
#define DISPLAY_ADDR 0x3C
|
||||
#endif
|
||||
|
||||
|
||||
// #define ENABLE_BLE //Enable ble function
|
||||
|
||||
enum {
|
||||
|
|
@ -74,7 +80,7 @@ bool beginSDCard();
|
|||
#define beginSDCard()
|
||||
#endif
|
||||
|
||||
#ifdef DISPLAY_ADDR
|
||||
#ifdef DISPLAY_MODEL
|
||||
bool beginDisplay();
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue