def setAllLEDs (red, green, blue):
for i in range(4):
setLED(i, red, green, blue)
# End of RGB LED Functions
#======================================================================
#======================================================================
# White LED Functions
# (Pi2Go-Lite only)
#
# LsetLED(LED, value): Sets the LED specified to OFF == 0 or ON == 1
# TODO: take value from 0 to 100 and use as percentage PWM value
评论列表
文章目录