DEVLOG 004 - Fixes, Wiring Cleanup & Getting It Solid
Mostly a cleanup and bug fixing session today
before moving on to the next round of upgrades.
Screen Flip
Once the screen was mounted in the enclosure
everything was upside down. One line fix changed
setRotation from 1 to 3 and that was it. Done.
Weather Screen Bug
Tracked down an annoying bug where the weather
screen would show data the first time but come
back blank after switching away and returning.
The issue was a redraw flag that never reset on
screen re entry. Fixed it by resetting the flag
in both the screen router and the mode switch
handler so weather now fully redraws every time
you land on it.
Enclosure Reprint - Screen Pocket
Reprinted the base and added a small pocket to
the cutout because the screen wasn’t sitting
flush. The soldered pins on the front of the
screen were hitting the case and pushing it up
slightly. Added a slot for them to drop into
screen sits perfectly flush now.
Wiring Issues - Touch Sensor
One of the touch sensors was activating on its
own just a red light flashing like something
was constantly triggering it with nothing
touching it.
First thought was the code since I was in the
middle of cleaning everything up anyway, so I
spent a while going through it trying to figure
out what was wrong. Nothing. Code was fine.
Turned out to be a bad ground connection on the
sensor the whole time. Resoldered it properly
and it’s been stable since. Classic hardware problem disguised as a software problem.
Overall today was about getting everything solid
and clean before the next upgrade push. Wiring
is tidy, code is cleaned up, everything is
working as expected.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.