I am trying to debug some Charlieplex code and I am not sure what is going on. Let me see if I understand this:
So this is how I intrepret these lines:
DDRB = ( 1<<0 | 1<<5 ); PORTB = ( 1<<0 );
DDRB will be set up with PINB0 and PINB5 as output the rest will be input and PIN0 will be high (5v) and PIN5 will be ground?
The problem I have is that I am using CharliePlex to control 50 LEDs. There is only one to 6 lights that will be "on at one time" (I am cycleing through the lights so that they appear that way) But sometimes I am getting more than one light on at a time. I started looking at the wiring and it all seemed correct then I started looking at the pin voltages and PINB3 was outputting a little over 3v. I removed all connections from this pin (except for the programmer) and it was still showing over 3V. I don't think the MOSI line is actually outputting anything when it is not programming, is it? I had to go to work so I will look at it some more when I get home. Any ideas or comments?