r/ArduinoProjects • u/Kaiabetes • Jan 18 '23
How to get green part of RGB working
Checked breadboard and code and can't see anything that should stop green part of RGB from working. Any help appreciated
2
Upvotes
4
u/tias315 Jan 18 '23
Maybe your first greenpin was digital only? That may be why you couldn't use analogwrite. Try digitalwrite instead. If you're using analogwrite(255), that's full brightness so it's the same as digitalwrite
3
u/tipppo Jan 19 '23
This seems to be a theme this week. Some drivers, like servo, take over one of the three timer/counters and break the two PWM pins that use that timer. Try another pin.
3


8
u/freelance-lumberjack Jan 18 '23
Code looks fine, can't see any errors. Suspect wiring.
I would just do an analog write green at the beginning of code to see if it's a hardware issue or software issue.