Bug in Lesson 6- Controlling anRGB LEDwithPWM
Unless I'm mistaken, I think you'll find that these line of code inhttps://github.com/adeept/Starter_Kit_Python_Code_for_RPi/blob/master/06_rgbLed.py
25 R_val = (col & 0x110000) >> 16
26 G_val = (col & 0x001100) >> 8
27 B_val = (col & 0x000011) >> 0
Should be:
25 R_val = (col & 0xFF0000) >> 16
26 G_val = (col & 0x00FF00) >> 8
27 B_val = (col & 0x0000FF) >> 0
Please send us a detailed description of the problem you encountered by email (including which product you bought, description of the problem, and picture provided): support@adeept.com
Pages:
[1]