mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-08-18 10:22:31 +02:00
Fix boot loop
This commit is contained in:
@@ -83,7 +83,6 @@ GxEPD2_BW<GxEPD2_420_SE0420NQ04, GxEPD2_420_SE0420NQ04::HEIGHT> & getdisplay();
|
|||||||
class LGFX : public lgfx::LGFX_Device {
|
class LGFX : public lgfx::LGFX_Device {
|
||||||
public:
|
public:
|
||||||
lgfx::Bus_SPI _bus_instance;
|
lgfx::Bus_SPI _bus_instance;
|
||||||
lgfx::Light_PWM _light_instance;
|
|
||||||
|
|
||||||
LGFX(void) {
|
LGFX(void) {
|
||||||
{
|
{
|
||||||
@@ -120,12 +119,8 @@ public:
|
|||||||
cfg.bus_shared = true;
|
cfg.bus_shared = true;
|
||||||
_panel_instance.config(cfg);
|
_panel_instance.config(cfg);
|
||||||
}
|
}
|
||||||
{
|
// No dedicated TFT PWM backlight pin configured on this board.
|
||||||
auto cfg = _light_instance.config();
|
// Keep backlight handling outside LovyanGFX to avoid LEDC init on invalid GPIO.
|
||||||
cfg.pin_bl = -1;
|
|
||||||
_light_instance.config(cfg);
|
|
||||||
_panel_instance.setLight(&_light_instance);
|
|
||||||
}
|
|
||||||
setPanel(&_panel_instance);
|
setPanel(&_panel_instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user