From 87dd379c89dbe9b63dd3ab0f20f002a20d789c47 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 2 Nov 2011 02:54:40 +0000 Subject: major update: lot of bugfixes, lot of changes - let compiler handle stack pointer arithmetic: switch to 16bit - improve update(): deadline depends on incremental release - resolve timing issues, new time convertion macros - major simplification of scheduler, most of garbage removed - new overflow interrupt for cycle counter, resolves also timing problems - simplify pwm generation, lookup tables are deferred, switch to 4bit - add blocking on shared values - remove garbage in lcd module and some bugfixes - add alternative reboot command to uart command interpreter - KISS --- kernel/color.h | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 kernel/color.h (limited to 'kernel/color.h') diff --git a/kernel/color.h b/kernel/color.h new file mode 100644 index 0000000..b208377 --- /dev/null +++ b/kernel/color.h @@ -0,0 +1,90 @@ +#ifndef __COLOR_H +#define __COLOR_H + +struct color { + uint8_t color, r, g, b; +} color[] PROGMEM = { + { 10, 0xff, 0x38, 0x00 }, + { 11, 0xff, 0x47, 0x00 }, + { 12, 0xff, 0x53, 0x00 }, + { 13, 0xff, 0x5d, 0x00 }, + { 14, 0xff, 0x65, 0x00 }, + { 15, 0xff, 0x6d, 0x00 }, + { 16, 0xff, 0x73, 0x00 }, + { 17, 0xff, 0x79, 0x00 }, + { 18, 0xff, 0x7e, 0x00 }, + { 19, 0xff, 0x83, 0x00 }, + { 20, 0xff, 0x89, 0x12 }, + { 21, 0xff, 0x8e, 0x21 }, + { 22, 0xff, 0x93, 0x2c }, + { 23, 0xff, 0x98, 0x36 }, + { 24, 0xff, 0x9d, 0x3f }, + { 25, 0xff, 0xa1, 0x48 }, + { 26, 0xff, 0xa5, 0x4f }, + { 27, 0xff, 0xa9, 0x57 }, + { 28, 0xff, 0xad, 0x5e }, + { 29, 0xff, 0xb1, 0x65 }, + { 30, 0xff, 0xb4, 0x6b }, + { 31, 0xff, 0xb8, 0x72 }, + { 32, 0xff, 0xbb, 0x78 }, + { 33, 0xff, 0xbe, 0x7e }, + { 34, 0xff, 0xc1, 0x84 }, + { 35, 0xff, 0xc4, 0x89 }, + { 36, 0xff, 0xc7, 0x8f }, + { 37, 0xff, 0xc9, 0x94 }, + { 38, 0xff, 0xcc, 0x99 }, + { 39, 0xff, 0xce, 0x9f }, + { 40, 0xff, 0xd1, 0xa3 }, + { 41, 0xff, 0xd3, 0xa8 }, + { 42, 0xff, 0xd5, 0xad }, + { 43, 0xff, 0xd7, 0xb1 }, + { 44, 0xff, 0xd9, 0xb6 }, + { 45, 0xff, 0xdb, 0xba }, + { 46, 0xff, 0xdd, 0xbe }, + { 47, 0xff, 0xdf, 0xc2 }, + { 48, 0xff, 0xe1, 0xc6 }, + { 49, 0xff, 0xe3, 0xca }, + { 50, 0xff, 0xe4, 0xce }, + { 51, 0xff, 0xe6, 0xd2 }, + { 52, 0xff, 0xe8, 0xd5 }, + { 53, 0xff, 0xe9, 0xd9 }, + { 54, 0xff, 0xeb, 0xdc }, + { 55, 0xff, 0xec, 0xe0 }, + { 56, 0xff, 0xee, 0xe3 }, + { 57, 0xff, 0xef, 0xe6 }, + { 58, 0xff, 0xf0, 0xe9 }, + { 59, 0xff, 0xf2, 0xec }, + { 60, 0xff, 0xf3, 0xef }, + { 61, 0xff, 0xf4, 0xf2 }, + { 62, 0xff, 0xf5, 0xf5 }, + { 63, 0xff, 0xf6, 0xf8 }, + { 64, 0xff, 0xf8, 0xfb }, + { 65, 0xff, 0xf9, 0xfd }, + { 66, 0xfe, 0xf9, 0xff }, + { 67, 0xfc, 0xf7, 0xff }, + { 68, 0xf9, 0xf6, 0xff }, + { 69, 0xf7, 0xf5, 0xff }, + { 70, 0xf5, 0xf3, 0xff }, + { 71, 0xf3, 0xf2, 0xff }, + { 72, 0xf0, 0xf1, 0xff }, + { 73, 0xef, 0xf0, 0xff }, + { 74, 0xed, 0xef, 0xff }, + { 75, 0xeb, 0xee, 0xff }, + { 76, 0xe9, 0xed, 0xff }, + { 77, 0xe7, 0xec, 0xff }, + { 78, 0xe6, 0xeb, 0xff }, + { 79, 0xe4, 0xea, 0xff }, + { 80, 0xe3, 0xe9, 0xff }, + { 81, 0xe1, 0xe8, 0xff }, + { 82, 0xe0, 0xe7, 0xff }, + { 83, 0xde, 0xe6, 0xff }, + { 84, 0xdd, 0xe6, 0xff }, + { 85, 0xdc, 0xe5, 0xff }, + { 86, 0xda, 0xe4, 0xff }, + { 87, 0xd9, 0xe3, 0xff }, + { 88, 0xd8, 0xe3, 0xff }, + { 89, 0xd7, 0xe2, 0xff }, + { 90, 0xd6, 0xe1, 0xff }, +}; + +#endif -- cgit v1.2.3