The final watch in my 30-days of watches: a lunar phase with sunrise/sunset on a 24-hour analog dial. I'm a bit late in posting this one due to work constraints and some technical issues. There are some new techniques demonstrated in the code: 8-bit grayscale images for the phases are packed into an RGB image so that the resource packer can handle it, the sunrise/sunset times for the local timezone are packed into a fake PNG so that they will appear as a resource in the inpulse_resources.bin file, and the draw_line_bg() function will replace a previously drawn line with pixels from the background image instead of just redoing them in black.
Later in the week I hope to make an omnibus post with some lessons learned and hopefully refactor a bunch of the code into libraries that will be useful to other programmers on the inPulse platform. It has been a very fun, challenging month!
Video:
http://www.flickr.com/photos/osr/577935 ... 084215019/ (showing demo mode of moon phase changing since tonight's new moon doesn't make for good video)
Source:
http://bitbucket.org/hudson/watches/src/tip/lunar/