ARDUINO CHARLIE 2

Posted by J. on Sunday, June 21, 2009

#include Charlieplex.h
#define NUMBER_OF_PINS 3

byte pins[] = {15,14,13};
//define pins in the order you want to adress them
Charlieplex charlieplex = Charlieplex(pins,NUMBER_OF_PINS);
//initialize object

charliePin leds[6] ={{1,2},{2,1},{2,0},{0,2},{1,0},{0,1},};
//individual 'pins'

void setup(){ /*nothing*/ }

void loop()
{
for (int i=0;i<6;i++) {
charlieplex.clear();
charlieplex.charlieWrite(leds[i],HIGH);
//delay(100);}
}

0 comments:

Subscribe to: Post Comments (Atom)