*plexing with an 08M...

pichutch

New Member
Hi, can someone confirm my belief that I should be able to 'charlieplex' 12 LEDs with the 08M if I use all 5 pins?
IO1, 2 & 4 allow 6 LEDs
OUT0 will allow another 3 LEDs if used with IN1, IN2 and IN4.
IN3 will allow 3 more if used with OUT1, OUT2 and OUT4.

Yea? no? oh...

[sorry if this has been discussed ad nauseum, I did try and search before I posted]
 
Last edited:

pichutch

New Member
First charlieplex! wohooooooooooo!
I tried the 'test' prog from the manual and got an LED flashing, then tried to fade an LED which was pretty fun, although I think I used the PWM command in a 'hack' ish sort of way, and then tried a 3 pin to 6 LED charlieplex and it worked! I can't believe it!

Here's the prog. I bet there are about 10 things that can be done to make it smaller/faster/better:

Code:
main:
	input 1 'turn off pin 1

	high 2
	low 4
	pause 50
	high 4
	low 2
	pause 50


	input 2 'turn off pin 2

	high 4
	low 1
	pause 50
	high 1
	low 4
	pause 50
	
	
	input 4 'turn off pin 4

	high 2
	low 1
	pause 50
	high 1
	low 2
	pause 50
	goto main
I'll attack it tomorrow evening and try and whittle it down. Right now the wife is telling me I HAVE to sleep. Ok boss!
 

pichutch

New Member
..p.s, thanks Eclectic, that post was helpful. I see now how to make my script a lot shorter by using 'dirs' and 'pins'. I'll try it tonight.
 
Top