goodwatch/firmware
2017-10-02 19:22:29 -04:00
..
apps Git tag is now included, can be displayed by holding 4 in Clock mode. 2017-10-02 19:22:29 -04:00
api.h Git tag is now included, can be displayed by holding 4 in Clock mode. 2017-10-02 19:22:29 -04:00
applist.h Initial stopwatch. No interaction yet. #22. 2017-09-27 19:34:33 -04:00
apps.c Fixed bug where LCD wouldn't be entirely cleared when timing out back to the clock. 2017-09-27 19:09:17 -04:00
apps.h Initial stopwatch. No interaction yet. #22. 2017-09-27 19:34:33 -04:00
keypad.c Fixes a bug in the keyscanning routine. 2017-09-26 16:23:34 -04:00
keypad.h
lcd.c LCD now begins dark, for diagnostics when clock won't stabilize. 2017-09-30 13:12:11 -04:00
lcd.h Moved drawing code back into main.c. 2017-09-28 17:34:46 -04:00
lcdtext.c Fixed mistake for leftmost decimal point, which we don't seem to have. Close #27. 2017-10-02 10:39:50 -04:00
lcdtext.h Fixed a bad declaration of lcd_cleardigit. 2017-09-27 19:26:17 -04:00
main.c Passing self test says GOODGOOD. 2017-09-30 13:36:40 -04:00
Makefile Git tag is now included, can be displayed by holding 4 in Clock mode. 2017-10-02 19:22:29 -04:00
README.md README for the firmware directory. 2017-09-29 15:39:05 -04:00
rtc.c Refactored the clock app's display into its proper module. Colon now blinks once each second, rather than twice. 2017-09-28 17:22:55 -04:00
rtc.h Refactored the clock app's display into its proper module. Colon now blinks once each second, rather than twice. 2017-09-28 17:22:55 -04:00
sidebutton.c
sidebutton.h

Howdy y'all,

The GoodWatch firmware is in this directory. You will find user-level applications in the apps/ subdirectory, while *.c in the root directory contain low-level drivers.

To add your own application, for one of the smaller examples, such as stopwatch.c. Your app must provide functions for _init() (to run at startup), _draw() (to run every quarter-second for rendering), and _exit() which should just return 0 unless you need to intercept the Mode button, in which case it may return 1 to delay the exit. Add these three functions to a line of the apps[] structure in applist.h.

In general, we try not to over-abstract the hardware because we don't intend the design to be portable away from the CC430. Include <msp430.h> if you need to access the CC430's IO registers or "api.h" for all the standard functions of the GoodWatch firmware.

Cheers,

--Travis