Could anybody explain to me what is going on in this code?
TCCR0A = 3<<COM0A0 | 3<<COM0B0 | 3<<WGM00;
This is from a RGB led program for the attiny85. The author is trying to create 3 pwms. This an 8 bit timer register where bits are being set. I found other examples of people setting bits this way, but I don't understand. Could someone rewrite this to make it more understandable or try to explain what this code does? Thanks
TCCR0A = 3<<COM0A0 | 3<<COM0B0 | 3<<WGM00;
This is from a RGB led program for the attiny85. The author is trying to create 3 pwms. This an 8 bit timer register where bits are being set. I found other examples of people setting bits this way, but I don't understand. Could someone rewrite this to make it more understandable or try to explain what this code does? Thanks