This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define TRIAC_PIN 5 | |
| #define ZERO_CROSS_PIN 4 | |
| #define DEBOUNCE_TIME 9000 //9ms - 10ms is the pulse period | |
| static uint32_t lastPulse = 0; | |
| static uint16_t period = 5000; //5ms - 50% for each half wave | |
| void ICACHE_RAM_ATTR onTimerISR(){ | |
| if(GPIP(TRIAC_PIN)){//OUTPUT is HIGH | |
| GPOC = (1 << TRIAC_PIN);//low |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE IF NOT EXISTS `country` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `iso` char(2) NOT NULL, | |
| `name` varchar(80) NOT NULL, | |
| `nicename` varchar(80) NOT NULL, | |
| `iso3` char(3) DEFAULT NULL, | |
| `numcode` smallint(6) DEFAULT NULL, | |
| `phonecode` int(5) NOT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1; |