Hello,
I'm trying to charlieplex a large array of LEDs through the Maple. However to start with I am just trying to control 2 LEDs via 2 pins like in this diagram:
http://upload.wikimedia.org/wikipedia/commons/a/ad/Complementary_Drive.png
What I tried to do is connect an LED from pin 0 to 1, and another LED from pin 1 to 0, then alternate which is glowing by running:
void loop()
{
pinMode(0, OUTPUT);
pinMode(1, INPUT);
digitalWrite(0, HIGH);
delay(1000);
digitalWrite(0, LOW);
pinMode(0, INPUT);
pinMode(1, OUTPUT);
digitalWrite(1, HIGH);
delay(1000);
digitalWrite(1, LOW);
}
But nothing happened.... I tried using just 1 LED from pin 0 to 1..
void setup()
{
pinMode(0, OUTPUT);
pinMode(1, INPUT);
digitalWrite(0, HIGH);
}
void loop()
{
}
But still nothing happened.. However by connecting from pin 0 to ground, the LED was able to glow. I ruled out that this was an issue with pin 1, because I tried other combinations of pins and they didn't work.
Is there something I am missing, or cannot the Maple do charlieplexing?