i just ran this:
void setup() {
// initialize the pins outputs:
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(whitePin, OUTPUT);
pinMode(sirenPin, OUTPUT);
pinMode(brightPin, OUTPUT);
// initialize the pins inputs:
pinMode(redButton, INPUT);
pinMode(greenButton, INPUT);
pinMode(startSensor, INPUT);
}
void loop(){
digitalWrite(redPin, HIGH);
delay(1000);
digitalWrite(redPin, LOW);
digitalWrite(greenPin, HIGH);
delay(1000);
digitalWrite(greenPin, LOW);
digitalWrite(whitePin, HIGH);
delay(1000);
digitalWrite(whitePin, LOW);
}
and all the led's checked out with the hardware so i ran my edited code with the "else &&, and ||" with simplified hardware(not installed onboard leds), and that checked out.
so ill test it with the more complicated set of hardware(installed in skull, external led's) but i expect it to work.
i dont get how the && could change that its in an entirely different part of the code but that may hove been the problem?