|
|
|
|
|
|
|
|
uint8_t softstart_led(uint8_t led, uint16_t startval, uint16_t stopval, uint8_t factor); |
|
|
uint8_t softstart_led(uint8_t led, uint16_t startval, uint16_t stopval, uint8_t factor); |
|
|
|
|
|
|
|
|
void timerCallback(void *pArg) |
|
|
void timerCallback(void *pArg) |
|
|
{ |
|
|
|
|
|
|
|
|
{ |
|
|
*((int *) pArg) += 1; |
|
|
*((int *) pArg) += 1; |
|
|
|
|
|
|
|
|
//Serial.print("hallo\n"); |
|
|
//Serial.print("hallo\n"); |
|
|
|
|
|
|
|
|
delay(5000); |
|
|
delay(5000); |
|
|
ESP.restart(); |
|
|
ESP.restart(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
os_timer_setfn(&Timer1, timerCallback, &c); |
|
|
os_timer_setfn(&Timer1, timerCallback, &c); |
|
|
os_timer_arm(&Timer1, 1, true); |
|
|
os_timer_arm(&Timer1, 1, true); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Serial.println("Ready"); |
|
|
Serial.println("Ready"); |
|
|
Serial.print("IP address: "); |
|
|
Serial.print("IP address: "); |
|
|
Serial.println(WiFi.localIP()); |
|
|
Serial.println(WiFi.localIP()); |