This file contains hidden or 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
| import RPi.GPIO as GPIO | |
| import time | |
| #GPIO Mode (BOARD / BCM) | |
| GPIO.setmode(GPIO.BCM) | |
| # Define the update rate of this program | |
| # Avoid large values as this will needlessly cycle and heat | |
| # the BCM chip on the board. In theory this value could be as | |
| # low as 0.5 - 1 Hz given our usecase, but 50 is used for responsivity |
OlderNewer