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

1h 58m 50s logged

Hello there! Today I worked on the code for the alarm clock! First I mapped the board’s labels (D0-D10) and the actual GPIO numbers, which was a bit tricky. After that, I copied the initialization code from the guide and then moved on to coding the UI. To get a better idea of how it would look, I hopped into lopaka.app (an online graphic design tool for screens used with microcontrollers) and designed the Settings menu, laying out the Alarm Time, Alarm Sound, and Font Color options, which I then repurposed to create the other menus as well. From there I built out a proper screen state machine, so I could actually navigate between al those menus and screens using the four buttons. Then, I asked AI for help to include some public domain music (including Fur Elise, Mountain King and Reveille) and brainstormed some ideas on how to get the local time onto the screen. My initial idea was to use an RTC, but then I realized that I had already used up every single GPIO pin already, so I switched from that idea to just pulling the real time over wifi instead. Along the way I ran into some bugs, such as my alarm time kept getting overwritten by the real clock value every frame, syntax errors and non-matching names. After I fixed those, the code compiles just fine, though I still need to test it out with the real pcb, once it gets here. Next step: harware assembly and testing! That’s for now, see you on the next devlog!

0
91

Comments 0

No comments yet. Be the first!