You are browsing as a guest. Sign up (or log in) to start making projects!

4h 26m 1s logged

Day 7 - debugging, oop, state machines

The only new functionality added today was updating my button state machine for double click and long press detection. Intended behavior: While a song is playing, double click to play the next song or long press to return to the file navigator / song selector. Demo test in video

The more interesting part to me was getting experience with two real big potato things: debugging & oop in c++.

I got a taste of debugging low-level errors using toolchains. In this case it was the Xtensa addr2line tool used to convert ESP32 memory address logs into the exact file and line number involved in the error. Shoutout RoboService on youtube with 10 subscribers for making a banger tutorial.

I also kinda went headfirst into c++ classes. My main arduino ide sketch was getting long enough to the point where partitioning it into classes became the smart move. I got the hang of it faster than expected. The new part is learning c++ specific syntax, but the fundamental concepts are the same across all oop languages.

0
2

Comments 0

No comments yet. Be the first!