I have to create a circuit where when a push button is pressed it adds a value of 10 to a rgb, there are 3 push buttons that add values of 10 to a rgb. I wrote some code for it but the RGB light wont show any colour when the push button is pressed. so for exaample push button 1 adds red and then 2 and 3 would add blue and green, I am using pwm pins so between to 0-255 range, so the 10 is refering to brightness and how each button add 10 brightness of their colour to make diffrent colours

Here is the link to the circuit and the code, everything was done in tinkercad

Touch here for the full post on the Arduino Apprentices tumblr

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s