Advertisement
Guest User

Untitled

a guest
Oct 14th, 2015
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. sudo python
  2.  
  3. import RPi.GPIO as GPIO
  4.  
  5. GPIO.setmode(GPIO.BOARD)
  6.  
  7. GPIO.setup(16, GPIO.OUT)
  8.  
  9. GPIO.output(16, 1); // you shall see the LED is now turned ON
  10.  
  11. GPIO.output(16, 0);// you shall see the LED is now turned OFF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement