1551094160 Publish time 2019-2-25 19:44:15

Bug in Lesson 6- Controlling anRGB LEDwithPWM

Unless I'm mistaken, I think you'll find that these line of code in

https://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





      
            


Adeept Publish time 2021-2-4 17:16:48

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]
View full version: Bug in Lesson 6- Controlling anRGB LEDwithPWM