2019-11-01 13:37:36 -04:00
|
|
|
|
|
|
|
#define COLOR(r, g, b) (((r) << 16) | ((g) << 8) | (b))
|
|
|
|
// For brightness == 255 (full). This will be adjusted downward for various different RGB indicators,
|
|
|
|
// which vary in brightness.
|
|
|
|
#define INTENSITY (0x30)
|
|
|
|
|
|
|
|
#define BLACK COLOR(0, 0, 0)
|
|
|
|
#define GREEN COLOR(0, INTENSITY, 0)
|
|
|
|
#define BLUE COLOR(0, 0, INTENSITY)
|
|
|
|
#define CYAN COLOR(0, INTENSITY, INTENSITY)
|
|
|
|
#define RED COLOR(INTENSITY, 0, 0)
|
2021-03-15 09:57:36 -04:00
|
|
|
#define ORANGE COLOR(INTENSITY, INTENSITY * 2 / 3, 0)
|
2019-11-01 13:37:36 -04:00
|
|
|
#define YELLOW COLOR(INTENSITY, INTENSITY, 0)
|
|
|
|
#define PURPLE COLOR(INTENSITY, 0, INTENSITY)
|
|
|
|
#define WHITE COLOR(INTENSITY, INTENSITY, INTENSITY)
|
2016-12-09 22:27:41 -05:00
|
|
|
|
|
|
|
#define BOOT_RUNNING BLUE
|
|
|
|
#define MAIN_RUNNING GREEN
|
2017-05-13 12:17:43 -04:00
|
|
|
#define SAFE_MODE YELLOW
|
2016-12-09 22:27:41 -05:00
|
|
|
#define ALL_DONE GREEN
|
|
|
|
#define REPL_RUNNING WHITE
|
|
|
|
|
2017-02-01 16:15:46 -05:00
|
|
|
#define ACTIVE_WRITE 0x200000
|
2016-12-09 22:27:41 -05:00
|
|
|
|
|
|
|
#define ALL_GOOD_CYCLE_MS 2000u
|
|
|
|
|
|
|
|
#define LINE_NUMBER_TOGGLE_LENGTH 300u
|
|
|
|
#define EXCEPTION_TYPE_LENGTH_MS 1000u
|
|
|
|
|
|
|
|
#define THOUSANDS WHITE
|
|
|
|
#define HUNDREDS BLUE
|
|
|
|
#define TENS YELLOW
|
|
|
|
#define ONES CYAN
|
|
|
|
|
|
|
|
#define INDENTATION_ERROR GREEN
|
|
|
|
#define SYNTAX_ERROR CYAN
|
|
|
|
#define NAME_ERROR WHITE
|
|
|
|
#define OS_ERROR ORANGE
|
2017-01-13 18:39:50 -05:00
|
|
|
#define VALUE_ERROR PURPLE
|
2019-05-08 14:54:08 -04:00
|
|
|
#define MPY_ERROR BLUE
|
2016-12-09 22:27:41 -05:00
|
|
|
#define OTHER_ERROR YELLOW
|