Open hpsaturn opened 6 months ago
The main function of the shutdown function is to detect whether the USB cable is plugged in. Leave the device running while the USB cable is plugged in.
Maybe this PR will be closed because the main target of this was resolved in the last commit of master. But we have now this issue #8 I don't know, maybe we don't need a deep-sleep and the lcd.wakeup() on USB connection. The last version has more eInk blinks, the previous commit of M5GFX library (f0f853adbb067b1914442ede02a1439fd7249fd5) was working better than the last one.
@hpsaturn
"The last version has more eInk blinks" Here is the solution:
diff --git a/AirQUserDemo.ino b/AirQUserDemo.ino index 5038d31..91c0d67 100644 --- a/AirQUserDemo.ino +++ b/AirQUserDemo.ino @@ -232,7 +232,7 @@ void setup() {
log_i("Screen init");
lcd.begin();
lcd.setEpdMode(epd_mode_t::epd_fastest);^M // lcd.sleep();
statusView.begin();
Summary
This PR improve the noise when you are using the device powered via USB. It fixes the issue #6 Also it uses the last version of Espressif framework and platform. Tested on real device.