k so ill show you here what i mean buy what i want to change,
i know i need to change it from "#define" to "int"
ive attached the whole code, what i want is to change all the times below with buttons instead of going into
the ide, changing them and then re compiling the code, does that make sense?
//LIGHT ON AND OFF TIMES
//Light 1
//on
#define light1OnHour 2
#define light1OnMinute 1
//off
#define light1OffHour 14
#define light1OffMinute 1
//Light 2
//on
#define light2OnHour 2
#define light2OnMinute 6
//off
#define light2OffHour 14
#define light2OffMinute 6
// PUMP ON TIMES (24 HOUR FORMAT)
// pump on times 1
#define pump1ONhour 2 //hour
#define pump1ONmin 0 //minute
#define pump1ONsec 0 //second
// pump on times 2
#define pump2ONhour 6 //hour
#define pump2ONmin 0 //minute
#define pump2ONsec 0 //second
// pump 1 on times 3
#define pump3ONhour 8 //hour
#define pump3ONmin 0 //minute
#define pump3ONsec 0 //second
// pump 1 on times 4
#define pump4ONhour 10 //hour
#define pump4ONmin 0 //minute
#define pump4ONsec 0 //second
//amount of time water is on for; watering length ; delay untell off
#define watertime 17000
//amount of time circulation pump turns on BEFORE water pump does (use negative)
#define circulationbefore -1
//amount of time circulation pump stays on for AFTER water pump does (use positive)
#define circulationafter +15
hydro_brain.ino (27.7 KB)