Charlieplexing Borrador
By THE_HACKERint data=4;
int latch=5;
int clock=6;
int t=300;
void set ( int led ) {
shiftOut(data,clock,MSBFIRST,led);
digitalWrite ( latch, HIGH );
digitalWrite ( latch, LOW );
delay ( t );
}
void setup ( ) {
pinMode ( data, OUTPUT );
pinMode ( latch, OUTPUT );
pinMode ( clock, OUTPUT );
}
void loop ( ) {
for( int i = B00000001; i<1 ; i++) {
set(i);
delay ( 1000 );
}
}