dc31-addon-addon-badge-firm.../badge_firmware/code/inc/led_prog.h
true d0d07b82f6 main firmware: basic user UI, setting save / restore added
Can now use the buttons to change programs, change active LED zones, change LED brightness and enter and exit programming mode. Exiting programming mode will save settings. Holding MODE upon boot will load defaults (though not overwrite them in EEPROM).

Also added basic power management. If the badge is still for 15min, LEDs will go out. When LEDs are blank due to brightness off setting or timeout, they are turned off to save power. Moving badge, entering programming mode, changing the program, or changing brightness will enable the LEDs.
2023-08-04 02:13:47 -07:00

23 lines
362 B
C

/*
* led_prog.h
*
* Created on: Aug 3, 2023
* Author: true
*/
#ifndef CODE_INC_LED_PROG_H_
#define CODE_INC_LED_PROG_H_
void ledprog_default(); // set ledprog settings to defaults
void ledprog_change(); // change active ledprog idx
void ledprog_run();
void ledprog_btn(); // assign buttons to ledprog
#endif /* CODE_INC_LED_PROG_H_ */