Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int32_t t_podacha;
- int32_t t_obratka;
- uint8_t gpio=12;
- void ICACHE_FLASH_ATTR
- startfunc(){
- valdes[0] = 1800;
- valdes[1] = 3000;
- valdes[2] = 300;
- valdes[3] = 0;
- }
- void ICACHE_FLASH_ATTR timerfunc(uint32_t timersrc) {
- t_podacha = data1wire[0] ;
- t_obratka = data1wire[1] ;
- if ( t_obratka > valdes[1] ){
- digitalWrite(12,1);
- } else {
- digitalWrite(12,0);
- }
- }
- void webfunc(char *pbuf) {
- os_sprintf(HTTPBUFF,"<br>уровень: %d% <meta http-equiv='refresh' content='%d'>", valdes[1], t_obratka);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement