Badger2040W: (Try to) fix abrupt poweroff screen corruption.

feature/badger2040w
Phil Howard 2023-01-31 15:54:04 +00:00 zatwierdzone przez Phil Howard
rodzic 3a2a43f4b3
commit a275f31c7a
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -119,6 +119,7 @@ class Badger2040W():
raise RuntimeError("Thickness not supported in PicoGraphics.")
def halt(self):
time.sleep(0.05)
enable = machine.Pin(ENABLE_3V3, machine.Pin.OUT)
enable.off()
while not self.pressed_any():