Adeept
»
Forum
›
Raspberry Pi
›
Starter Kits
›
Bug in Lesson 6- Controlling anRGB LEDwithPWM
Return to list
View:
1058
|
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
757
20
Threads
216
Posts
757
Credits
Senior member
Senior member, Credits 757, For the next level needed 243 Credits
Senior member, Credits 757, For the next level needed 243 Credits
Credits
757
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