Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Pinmode 2
- // Timer Schedule
- else if(pinmode == 2) {
- Serial.print("TIMER -> ");
- // uint16_t imin;
- int imin, imax, mt;
- mt = minutes_today();
- eeprom_read_int(offset+1, &imin);
- eeprom_read_int(offset+3, &imax);
- if ((mt >= imin && mt <= imax) {
- Serial.print("ON ");
- analogWrite(o, 255);
- } else {
- Serial.print("OFF ");
- analogWrite(o, 0);
- }
- Serial.print(imin);
- Serial.print(" | ");
- Serial.println(imax);
- }
Add Comment
Please, Sign In to add comment