Description
Return true when the operand is false
Example Code
if (!pushButton){ // if the button is NOT pushed
digitalWrite(13, HIGH); //Turn on the LED
} else {
digitalWrite(13, LOW); //or turn off the LED
}
Return true when the operand is false
if (!pushButton){ // if the button is NOT pushed
digitalWrite(13, HIGH); //Turn on the LED
} else {
digitalWrite(13, LOW); //or turn off the LED
}
Loading…