Now that I have a clean slate to test my project on, I ran python main.py and somwhow got three errors in a row.
Spent an hour adding trys and except Exception as e everywhere to prevent this.
Now debugging is way easier and more user-friendly.
Fixed some bugs such as ssd1106 not being a real OLED screen part name
As well as gpiozero missing the rpi-lgpio library, which needs system-wide packages swig and liblgpio-dev so yh dependency hell.
Almost everything should be error-proof now. I tested it, and no errors popped up, just friendly reminders that I2C wasn’t enabled, or that my buttons weren’t detected, or no screen.
Update install.sh with these changes, now works perfectly.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.