I have to do two tasks
- I have to make the current led blink(for example if red led is currently active i want it to blink if green is active i want green to blink)
I have done first part to figure out the active led , but i am facing problems in serial communication (which methods to use , which encoding to use)
I want to send active color to arduino (which method to use if i send like a charracter 'r' , 'g' and 'b' )
Please give an example so i can get out of the confusion
- I want to change the brightness of active led
Again i have done the job of figuring out active color and i have also inputted brightness value of that led (from 0-255)
Now how do i send this information to arduino and process it
should i send as a string , a charracter array help me!!