User Tools

Site Tools


gpio_inputs_-_button_led_control_using_an_interrupt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
gpio_inputs_-_button_led_control_using_an_interrupt [2016/08/09 23:04] walkeradmingpio_inputs_-_button_led_control_using_an_interrupt [2016/08/09 23:07] walkeradmin
Line 8: Line 8:
 \\  \\ 
     sudo nano LED-Button-i.py     sudo nano LED-Button-i.py
-\\ +
     #import modules     #import modules
     import RPi.GPIO as GPIO    # This imports the GPIO library that allows the use of the GPIO pins,     import RPi.GPIO as GPIO    # This imports the GPIO library that allows the use of the GPIO pins,
Line 47: Line 47:
          
     #End     #End
 +\\ 
 +Once you have your file saved, you can run it by using:
 +\\ 
 +    sudo python LED-Button-i.py
 +\\ 
 +===== Example Output =====
 +\\ 
 +Here you can see the code running {{ :led-button-i.mp4 |(video)}}
 +