-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLEDs.py
More file actions
40 lines (37 loc) · 783 Bytes
/
LEDs.py
File metadata and controls
40 lines (37 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# import RPi.GPIO as GPIO
# from time import sleep
# GPIO.setmode(GPIO.BOARD)
#
#
# print("RPi.GPIO Mode BOARD OK")
#
# pin_led_r = 40
# pin_led_g = 38
# pin_led_b = 36
# pin_vcc = 37
#
#
# GPIO.setup(pin_led_r, GPIO.OUT)
# GPIO.setup(pin_led_g, GPIO.OUT)
# GPIO.setup(pin_led_b, GPIO.OUT)
# GPIO.setup(pin_vcc, GPIO.OUT)
#
# GPIO.output(pin_vcc, GPIO.HIGH)
#
# GPIO.output(pin_led_r, GPIO.LOW)
# sleep(1)
# GPIO.output(pin_led_r, GPIO.HIGH)
#
# GPIO.output(pin_led_g, GPIO.LOW)
# sleep(1)
# GPIO.output(pin_led_g, GPIO.HIGH)
#
# GPIO.output(pin_led_b, GPIO.LOW)
# sleep(1)
# GPIO.output(pin_led_b, GPIO.HIGH)
print("Test LED OK")
print("RPi.GPIO Mode BOARD OK")
class LEDs:
@classmethod
def setLEDs(cls, color=(0,0,0)):
pass