now my mind is mush....appreciate the willingness to help here is my latest attempt which kicked back errors
int SOUND = 10;
int ALERTLIGHT = 9;
int BUNKLIGHT = 8;
int SPEAKER = 7;
int alert = 2;
unsigned long SOUNDOnTIME;
unsigned long ALERTOnTIME;
unsigned long BUNKLIGHTOnTIME;
unsigned long SPEAKEROnTIME;
bool SOUNDOn;
bool ALERTOn;
bool BUNKLIGHTOn;
bool SPEAKEROn;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(SOUND, OUTPUT);
pinMode(ALERTLIGHT, OUTPUT);
pinMode(SPEAKER, OUTPUT);
pinMode(BUNKLIGHT, OUTPUT);
pinMode(alert, INPUT);
SOUNDOn = false;
ALERTOn = false;
BUNKLIGHTOn = false;
SPEAKEROn = false;
}
void loop() {
if (digitalRead(alert) == HIGH) {
digitalWrite(SOUND, HIGH);
SOUNDOn = true;
SOUNDOnTIME = millis(3000);
}
if (digitalRead(alert) == HIGH) {
digitalWrite(ALERTLIGHT, HIGH);
ALERTOn = true;
ALERTOnTIME = millis(6000);
}
if (digitalRead(alert) == HIGH) {
digitalWrite(SPEAKER, HIGH);
SPEAKEROn = true;
SPEAKEROnTIME = millis(10000);
}
if (digitalRead(alert) == HIGH) {
digitalWrite(BUNKLIGHT, HIGH);
BUNKLIGHTOn = true;
BUNKLIGHTOnTIME = millis(10000);
}
}
C:\Users\dketc\AppData\Local\Temp\.arduinoIDE-unsaved2024224-4268-rdjdqv.ae3jn\sketch_mar24a\sketch_mar24a.ino: In function 'void loop()':
C:\Users\dketc\AppData\Local\Temp\.arduinoIDE-unsaved2024224-4268-rdjdqv.ae3jn\sketch_mar24a\sketch_mar24a.ino:42:30: error: too many arguments to function 'long unsigned int millis()'
SOUNDOnTIME = millis(3000);
^
In file included from C:\Users\dketc\AppData\Local\Temp\arduino\sketches\D591894DDF2D98349832237E98C87EDC\sketch\sketch_mar24a.ino.cpp:1:0:
C:\Users\dketc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:141:15: note: declared here
unsigned long millis(void);
^~~~~~
C:\Users\dketc\AppData\Local\Temp\.arduinoIDE-unsaved2024224-4268-rdjdqv.ae3jn\sketch_mar24a\sketch_mar24a.ino:47:30: error: too many arguments to function 'long unsigned int millis()'
ALERTOnTIME = millis(6000);
^
In file included from C:\Users\dketc\AppData\Local\Temp\arduino\sketches\D591894DDF2D98349832237E98C87EDC\sketch\sketch_mar24a.ino.cpp:1:0:
C:\Users\dketc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:141:15: note: declared here
unsigned long millis(void);
^~~~~~
C:\Users\dketc\AppData\Local\Temp\.arduinoIDE-unsaved2024224-4268-rdjdqv.ae3jn\sketch_mar24a\sketch_mar24a.ino:52:33: error: too many arguments to function 'long unsigned int millis()'
SPEAKEROnTIME = millis(10000);
^
In file included from C:\Users\dketc\AppData\Local\Temp\arduino\sketches\D591894DDF2D98349832237E98C87EDC\sketch\sketch_mar24a.ino.cpp:1:0:
C:\Users\dketc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:141:15: note: declared here
unsigned long millis(void);
^~~~~~
C:\Users\dketc\AppData\Local\Temp\.arduinoIDE-unsaved2024224-4268-rdjdqv.ae3jn\sketch_mar24a\sketch_mar24a.ino:57:35: error: too many arguments to function 'long unsigned int millis()'
BUNKLIGHTOnTIME = millis(10000);
^
In file included from C:\Users\dketc\AppData\Local\Temp\arduino\sketches\D591894DDF2D98349832237E98C87EDC\sketch\sketch_mar24a.ino.cpp:1:0:
C:\Users\dketc\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:141:15: note: declared here
unsigned long millis(void);
^~~~~~
exit status 1
Compilation error: too many arguments to function 'long unsigned int millis()'