lib-p_status can be used to flash a heartbeat or status codes on an LED.
- Microchip PIC24 project- any PIC24 should work, tested with PIC24FJ256GA106 and PIC24FJ256GA110
- Get the newest version from the releases section of the repository and copy the source files to your project directory.
- Add files to your IDE project if required.
- Configure the LED pin, timers, and blink codes in
status.h. - Run
status_routine()on a regular interval using a scheduler or similar. - Add blink codes using
status_add_code(). If no codes are queued, the LED will flash on a regular "heartbeat" interval. You may remove status codes by usingstatus_remove_code().
- All blink codes must be added to the
StatusCodestypedef enumeration instatus.h. This is required becauseNUM_STA_CODESis used to determine the size of the code array.