Adafruit_Learning_System_Guides
Adafruit_Learning_System_Guides copied to clipboard
3 issues with the HalloWing GPS Tour Guide project
I've been trying to get this project working and I ran into 3 bugs with the current version of the sample code. Apologies for not just putting in a pull request but I am super rusty at using git:
https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/HalloWing_Tour_Guide/code.py
- On line 24, the timeout needs to be between 1 and 100 seconds (looks like this is sending it in ms, should change timeout to 3 instead of 3000)
- Lines 43-45, 81, and 84 throw a TFT_Backlight in use error. I had luck replacing it with board.DISPLAY.brightness = 0 and board.DISPLAY.brightness = 1 as appropriate
- I kept getting memory errors whenever it would attempt to play a wav file. Removing the debouncer library (reverting to the old code from November 12, 2018 for the switch instead) made it play fine.
I can't imagine that the debouncer library is THAT heavyweight of a library but it seems to be just enough to run the HalloWing out of memory.