Skip to content

Instantly share code, notes, and snippets.

@nkenna
Created June 24, 2018 21:04
Show Gist options
  • Save nkenna/ce198eabe0fa1c311260e6a8691c5661 to your computer and use it in GitHub Desktop.
Save nkenna/ce198eabe0fa1c311260e6a8691c5661 to your computer and use it in GitHub Desktop.
// 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