This commit is contained in:
2025-09-07 21:08:28 +03:00
parent 6d18c18051
commit bf1a06cbb2
4 changed files with 76 additions and 0 deletions

12
zh_avr_ac_dimmer.c Normal file
View File

@@ -0,0 +1,12 @@
#include "zh_avr_ac_dimmer.h"
const static uint8_t _triac_400hz_delay[100] PROGMEM = {0, 155, 153, 152, 150, 148, 147, 145, 144, 142,
141, 139, 137, 136, 134, 133, 131, 130, 128, 127,
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};