RGB LED¶
Set Colour¶
set_rgb(
self, red, green, blue)Sets the RGB to the desired colour using a combination of red, green blue colour intensities
red 0-255 value for the red colour intensitygreen 0-255 value for the green colour intensityblue 0-255 value for the blue colour intensityRobo.RGB1.set_rgb(120,25,255)
Blink RGB¶
blink_rgb(
self, red, green, blue, num_blinks,``period`` )red 0-255 value for the red colour intensitygreen 0-255 value for the green colour intensityblue 0-255 value for the blue colour intensitynum_blinks number of blinksperiod period in millisecondsRobo.RGB1.blink_rgb(255, 255, 255, 5, 1000) # blink white 5 times
Timed RGB¶
timed_rgb(
self, red, green, blue, time )red 0-255 value for the red colour intensitygreen 0-255 value for the green colour intensityblue 0-255 value for the blue colour intensitytime LED on time in secondsRobo.RGB1.timed_rgb(255, 255, 255, 2) # white light for 2 seconds
Check LED Action¶
check_action(
self)Returns 1 if the action is completed
while not Robo.RGB1.check_action():
# do stuff