#include #define NUMBER_OF_PINS 6 byte pins[] = {2,3,4,5,6,7}; Charlieplex charlieplex = Charlieplex(pins,NUMBER_OF_PINS); //charliePin led0 = { 0 , 1 };//HIGH when current flows from 2 to 3 //charliePin led1 = { 1 , 0 };//HIGH when current flows from 3 to 2 charliePin ledi[] = { {0, 1}, {1, 0}, {2, 0}, {3, 0}, {4, 0}, {5, 0}, }; int wait = 500; void setup(){ /*nothing*/ } void loop(){ int i; for (i=0; i<6; i++){ charlieplex.charlieWrite(ledi[i],HIGH); delay(wait); charlieplex.clear(); } delay(wait); }