adafruit / Adafruit_CircuitPython_FeatherWing

CircuitPython classes for Adafruit FeatherWings
MIT License
11 stars 13 forks source link

Weirdness with the MiniTFT #54

Closed makermelissa closed 4 years ago

makermelissa commented 4 years ago

@jedgarpark was working on the MiniTFT and running the minitft simpletest and noticed it was continually printing out weird characters. When I tried it, it seemed fine at first. However, when pushing the buttons for like 15-30 seconds, I noticed that the python script would hang or the feather would occasionally reboot. Additionally, I noticed the neopixel on the board would also turn red then back to green, though the script appeared to run anyways. I think the issue may be related to Seesaw as I attempted to adjust the delay and then it started acting really weird and continually showing the buttons being pressed, even after changing it back to the previous value.

I'm not sure if the fix is going to be here or in seesaw, but since it seems isolated to using this library, I thought I would open the issue here.

makermelissa commented 4 years ago

Ok, I'm certain it was turning read on bad seesaw reads now. So, increasing the delay in the digital_read_bulk helps. Since I've increased the read delay a few times now, I decided to add an override for the digital_read_bulk. Also since 0.005 is occasionally causing bad reads and 0.008 isn't, I'll increase that as well, so there will be a couple of PRs coming.

makermelissa commented 4 years ago

Fixed by #55 and https://github.com/adafruit/Adafruit_CircuitPython_seesaw/pull/47.