fix indent
This commit is contained in:
parent
8789a0d161
commit
bf26a26e73
18
8x8x8.ino
18
8x8x8.ino
|
@ -30,8 +30,8 @@ const byte ICtable[9]={
|
|||
};
|
||||
|
||||
void writeCube(int tdelay){
|
||||
static int currentLayer=0;
|
||||
unsigned long startedAt = millis();
|
||||
static int currentLayer=0;
|
||||
unsigned long startedAt = millis();
|
||||
while(millis() - startedAt < tdelay){
|
||||
|
||||
delay(1);// wait a bit on previous layer
|
||||
|
@ -47,16 +47,16 @@ void writeCube(int tdelay){
|
|||
//lines
|
||||
PORTB=ICtable[0];//set IC
|
||||
for(int ligne=0;ligne < 8; ligne++){
|
||||
//write BUS for this leds'line
|
||||
for (int led=0;led <8;led++){
|
||||
digitalWrite(busPins[led], cube[currentLayer][ligne][led]);
|
||||
}
|
||||
PORTB=ICtable[ligne +1]; //74HC574 is writen when clock pin goes LOW to HIGH. SO go to the next value for IC.
|
||||
//write BUS for this leds'line
|
||||
for (int led=0;led <8;led++){
|
||||
digitalWrite(busPins[led], cube[currentLayer][ligne][led]);
|
||||
}
|
||||
PORTB=ICtable[ligne +1]; //74HC574 is writen when clock pin goes LOW to HIGH. SO go to the next value for IC.
|
||||
}
|
||||
//OE ON
|
||||
digitalWrite(pinOE, LOW);
|
||||
//layer on
|
||||
digitalWrite(layersPins[currentLayer],HIGH);
|
||||
//layer on
|
||||
digitalWrite(layersPins[currentLayer],HIGH);
|
||||
}
|
||||
}
|
||||
void fillCube(){
|
||||
|
|
Loading…
Reference in New Issue
Block a user