wip:
This commit is contained in:
14
src/main.c
14
src/main.c
@@ -5,7 +5,14 @@
|
|||||||
|
|
||||||
const static uint8_t triac_delay[100] PROGMEM = {0, 155, 153, 152, 150, 148, 147, 145, 144, 142,
|
const static uint8_t triac_delay[100] PROGMEM = {0, 155, 153, 152, 150, 148, 147, 145, 144, 142,
|
||||||
141, 139, 137, 136, 134, 133, 131, 130, 128, 127,
|
141, 139, 137, 136, 134, 133, 131, 130, 128, 127,
|
||||||
125};
|
125, 123, 122, 120, 119, 117, 116, 114, 112, 111,
|
||||||
|
109, 108, 106, 105, 103, 102, 100, 98, 97, 95,
|
||||||
|
94, 92, 91, 89, 87, 86, 84, 83, 81, 80,
|
||||||
|
78, 77, 75, 73, 72, 70, 69, 67, 66, 64,
|
||||||
|
62, 61, 59, 58, 56, 55, 53, 52, 50, 48,
|
||||||
|
47, 45, 44, 42, 41, 39, 37, 36, 34, 33,
|
||||||
|
31, 30, 28, 27, 25, 23, 22, 20, 19, 17,
|
||||||
|
16, 14, 12, 11, 9, 8, 6, 5, 3, 2};
|
||||||
|
|
||||||
uint8_t count = 0;
|
uint8_t count = 0;
|
||||||
|
|
||||||
@@ -67,11 +74,6 @@ int main(void)
|
|||||||
#else
|
#else
|
||||||
// xTaskCreate(system_setup_task, NULL, 107, NULL, tskIDLE_PRIORITY, NULL);
|
// xTaskCreate(system_setup_task, NULL, 107, NULL, tskIDLE_PRIORITY, NULL);
|
||||||
#endif
|
#endif
|
||||||
// TCCR0A = 0x00;
|
|
||||||
// TCCR0B = 0x00;
|
|
||||||
// OCR1A = 53332;
|
|
||||||
// TCCR1B |= (1 << WGM12) | (1 << CS10);
|
|
||||||
// TIMSK1 |= (1 << OCIE1A);
|
|
||||||
|
|
||||||
DDRB |= (1 << PORTB5);
|
DDRB |= (1 << PORTB5);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user