b6f1eebab3
The new sequence is as follows: * Solid blue during the boot/settings script. * Solid green during the main/code script. * After main while waiting to enter repl or reset: * Fading green once main is done successfully. * On error produce a series of flashes: * Long flash color of script. * Long flash color of error: * Green = IndentationError * Cyan = SyntaxError * White = NameError * Orange = OSError * Yellow = Other error * Line number of the exception by digit. Number of flashes represents value. * Thousands = White * Hundreds = Blue * Tens = Yellow * Ones = Cyan * Off for a period and then repeats. At any point a write to the flash storage will flicker red. Fixes #63
17 lines
470 B
C
17 lines
470 B
C
#ifndef __MICROPY_INCLUDED_ATMEL_SAMD_RGB_LED_STATUS_H
|
|
#define __MICROPY_INCLUDED_ATMEL_SAMD_RGB_LED_STATUS_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#include "rgb_led_colors.h"
|
|
|
|
extern void rgb_led_status_init(void);
|
|
extern void new_status_color(uint32_t rgb);
|
|
extern void temp_status_color(uint32_t rgb);
|
|
extern void clear_temp_status(void);
|
|
|
|
uint32_t color_brightness(uint32_t color, uint8_t brightness);
|
|
|
|
#endif // __MICROPY_INCLUDED_ATMEL_SAMD_RGB_LED_STATUS_H
|