1. Does a 0 on the Digital Output pin of Atmega8 equivalent to Ground?
If I connect a LED + Resistor betwen D-Out pins 1 & 2, with Pin 1 outputting '1'& pin 2 outputting '0', will it light the LED?
If so, is it safe to do so instead of using Ground?(I read something about considering the sink current & such!)
2. Will the following work? My aim to control the gradual dimming & brightening of individual LED's.
The max current sink capacity for the Digital Pin of Atmega8 is 40 mA?What is the source capacity?
Considering the above image, will it work without any problem?How many Ohms resistor should I use on each pin?
Lastly, I would be grateful if you can tell me how to use NPN tansistors (BC548)as switches in the above diagram? (including the resistor values)