-
Notifications
You must be signed in to change notification settings - Fork 18
Input Output: Get digital pin value ()
Jaume Olivé Petrus edited this page Oct 29, 2017
·
1 revision
This block is an Input / Output block and a Reporter block that reports the current logical value of a GPIO.
When this block is active the GPIO is configured as input with pull-up enabled.
In this example a led is turned off if a switch is pushed, and turned on if the switch is released.
Instructions:
- Connect a switch to GPIO25
- Connect a led to GPIO26
Run this example in The Whitecat IDE.