m5stack / AirQUserDemo

10 stars 5 forks source link

Fix issue 6 noise on usb #7

Open hpsaturn opened 6 months ago

hpsaturn commented 6 months ago

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.

lbuque commented 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.

hpsaturn commented 5 months ago

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.

lbuque commented 5 months ago

@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();