Update rgb.py
This commit is contained in:
+3
-3
@@ -6,8 +6,8 @@ GPIO.setmode(GPIO.BCM)
|
||||
RUNNING = True
|
||||
|
||||
# PINs
|
||||
green = 20
|
||||
red = 21
|
||||
red = 20
|
||||
green = 21
|
||||
blue = 22
|
||||
|
||||
# frequency for PWM
|
||||
@@ -17,7 +17,7 @@ GPIO.setup(red, GPIO.OUT)
|
||||
GPIO.setup(green, GPIO.OUT)
|
||||
GPIO.setup(blue, GPIO.OUT)
|
||||
|
||||
#defining the pins that are going to be used with PWM
|
||||
# defining the pins that are going to be used with PWM
|
||||
RED = GPIO.PWM(red, freq)
|
||||
GREEN = GPIO.PWM(green, freq)
|
||||
BLUE = GPIO.PWM(blue, freq)
|
||||
|
||||
Reference in New Issue
Block a user