IO: Clarify SimpleInput example

As suggested by @msurguy
This commit is contained in:
gohai
2018-06-26 19:11:29 -07:00
committed by Gottfried Haider
parent c968b6ea68
commit aba636275c
@@ -12,10 +12,11 @@ void setup() {
}
void draw() {
// sense the input pin
if (GPIO.digitalRead(4) == GPIO.HIGH) {
if (GPIO.digitalRead(4) == GPIO.LOW) {
// button is pressed
fill(255);
} else {
// button is not pressed
fill(204);
}
stroke(255);