Adeept
»
Forum
›
Raspberry Pi
›
Starter Kits
›
Bug in Lesson 6- Controlling anRGB LEDwithPWM
Return to list
View:
2476
|
Reply:
1
Bug in Lesson 6- Controlling anRGB LEDwithPWM
[Copy link]
1551094160
1551094160
Offline
Credits
11
1
Threads
1
Posts
11
Credits
Newbie
Newbie, Credits 11, For the next level needed 39 Credits
Newbie, Credits 11, For the next level needed 39 Credits
Credits
11
Send PM
Post time 2019-2-25 19:44:15
|
Show all posts
|
Read mode
Unless I'm mistaken, I think you'll find that these line of code in
https://github.com/adeept/Starte ... master/06_rgbLed.py
25 R_val = (col & 0x
11
0000) >> 16
26 G_val = (col & 0x00
11
00) >> 8
27 B_val = (col & 0x0000
11
) >> 0
Should be:
25 R_val = (col & 0x
FF
0000) >> 16
26 G_val = (col & 0x00
FF
00) >> 8
27 B_val = (col & 0x0000
FF
) >> 0
[tr] [/tr]
Reply
Use magic
Report
Adeept
Adeept
Offline
Credits
814
23
Threads
223
Posts
814
Credits
Senior member
Senior member, Credits 814, For the next level needed 186 Credits
Senior member, Credits 814, For the next level needed 186 Credits
Credits
814
Send PM
Post time 2021-2-4 17:16:48
|
Show all posts
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
Reply
Use magic
Report
Return to list
Advanced Mode
B
Color
Image
Link
Quote
Code
Smilies
You have to log in before you can reply
Login
|
Sign Up
Points Rules
Reply post
To last page