yeah there's still an error..am I supposed to write something next to IF ?
I copy and pasted this exact bit you sent me, minus the capitalization, etc:
I copy and pasted this exact bit you sent me, minus the capitalization, etc:
Code:
void onLedSwitchChange () {
if { // executes if true
digitalWrite (LEDpin, HIGH);
} else { //executes if false
digitalWrite (LEDpin, LOW);
}
}