[2022 Day 1] [Monkey C] Solving AoC on my Garmin Forerunner 235

Upping the Ante

I wrote a Garmin App for solving AoC Problems. Garmin release their own programming language called Monkey C for developing apps, watch faces etc. for their devices.

I made it work for day 1 (already takes forever...), who knows how many other days (if any) I'll be able to do. Video

The watch needs to have a Bluetooth connection to my phone and can then download the input and calculate the answer.

The main limitation is that the OS is single threaded and doesn't allow an app to hog the cpu for too long. I have to figure out by trial and error when I need to voluntarily yield from the app (that's when the progress is printed on the screen) and make it so that the solve function can continue where it left off after being "scheduled" again.

The Code is here.

Posted Dec 1, 2022, 8:02 AM UTC · edited

479
Loading comments…