If you are going to be unpluggin the arduino it gets a little complicated.
I'd like to use processing to develop the GUI. The GUI should take input maybe as a text field that allows the user to enter time in integer form and that input should be used to determine when the LED should light up
time_t alarmOnTime = (8 * SECS_PER_HOUR) + (30 * SECS_PER_MIN);time_t alarmOffTime = alarmOnTime + (60 * SECS_PER_MIN);time_t nextAlarm;nextAlarm = previousMidnight(DateTime.now())+ alarmOnTime;if( DateTime.now() >= nextAlarm && DateTime.now() < nextAlarm + alarmOffTime ) digitalWrite(ledPin), HIGH);else digitalWrite(ledPin), LOW);
But guys, how can i create a text box or anything at all to allow the user input the time the LED should light up
P.S: I'm new to Arduino. i could have done this GUI easily in C#
Interfacing with C# is good but i'd rather not mix C# with arduino+processing except i have no other choice