Driver for an AC light dimmer with zero-crossing driver.
More...
|
| file | ac-dimmer.c |
| | Driver for the Krida Electronics AC light dimmer with zero-crossing, using a 50Hz frequency as reference (1/50Hz) ~20ms and 10ms half-cycle.
|
| |
| file | ac-dimmer.h |
| | Header file for an AC light dimmer with zero-crossing driver.
|
| |
|
|
#define | DIMMER_SYNC_PIN 5 |
| |
|
#define | DIMMER_SYNC_PORT GPIO_A_NUM |
| |
|
#define | DIMMER_GATE_PIN 4 |
| |
|
#define | DIMMER_GATE_PORT GPIO_A_NUM |
| |
|
#define | DIMMER_INT_VECTOR GPIO_A_IRQn |
| |
|
|
#define | DIMMER_DEFAULT_START_VALUE 50 |
| |
|
#define | DIMMER_DEFAULT_GATE_PULSE_US 15 |
| |
|
#define | DIMMER_DEFAULT_MIN_DIMM_VALUE 10 |
| |
|
#define | DIMMER_DEFAULT_MAX_DIMM_VALUE 80 |
| |
|
|
#define | DIMMER_ERROR (-1) |
| |
|
#define | DIMMER_SUCCESS 0x00 |
| |
Driver for an AC light dimmer with zero-crossing driver.