Close

Coding is hard but im making progress

A project log for Music32-V2 - Portable music player

Recreating the ipod with Bluetooth and an SD card slot, without losing the headphone jack

nicNic 09/11/2023 at 06:490 Comments

Encountered a couple coding issues which you can see below. Had problems with a for loop which was drawing the text but fixed it by replacing it with a while loop. 

Now i've got the text all displaying correctly and it is scrollable with the clickwheel. However every time it has to draw the screen it needs to read the SD card again so there can be quite a bit of lag if you scroll fast which can cause it to skip items. To counter this I plan to store the displayed file names temporarily so the code can just read from an array instead of the sd card when it needs to update the screen, hopefully getting rid of that lag. A file filter also needs to be in place to only display music files. Then some more code to handle navigating folders and treating them as playlists. Once I figure out handling SD cards ill pretty it up and make it how I want it to be, obviously it shouldn't just dump the contents into a big list of music files. I think my next goal however is adding the battery and clock information and maybe some basic settings because I want an easy success, handling the SD card and making a gui is hard work.

Discussions