Created
June 24, 2018 21:04
-
-
Save nkenna/ce198eabe0fa1c311260e6a8691c5661 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// provision the necessary pins in order to use it | |
// provision PIR pin as input and LedPin as output | |
GpioPinDigitalInput pir = gpio.provisionDigitalInputPin(RaspiPin.GPIO_29); | |
GpioPinDigitalOutput ledPin = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_04); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment