flipdot.selectColumnSet(i);//lower column number is on the left
flipdot.setRow(0);
flipdot.setRow(flipdot.getRow()+pow(2,4));//low significant bits are lower rows (when connector at top)
flipdot.setRow(flipdot.getRow()+pow(2,5));//low significant bits are lower rows (when connector at top)
flipdot.setSelectedDot();
delay(50);
}
delay(100);
countz++;
countz%=14;
//init=false;
}
voidImage::loop_drawClearTest(){
staticboolinit=false;
if(!init){
flipdot.setRow(0);
Serial.println("Clearing Display");
for(intl=0;l<COLUMNS;l++){
flipdot.selectColumnClear(l%COLUMNS);
if(!flipdot.clearSelectedColumn()){
Serial.println("Error clearing column!");
}else{
Serial.println("Cleared");
}
delay(20);
}
init=true;
delay(1000);
}
Serial.print("count=");
Serial.print(countz);Serial.print(": ");
//setting colX to 128, 32, 8,2 (or a combination of), then appling 12V to driver and GND to Clear, clears these colums
// this applies +12v to selected columns
//setting colX to 64,16,4,1 (or a combination of), then setting row shift registers to some setting sets the selected dots
// this applies GND to selected columns
//reset pin on annax board input should be used (not pulled to gnd for a short time) after dots have been flipped (to disable potentially activated transistors)
//cycle testing set dots
flipdot.selectColumnSet(countz/ROWS);//lower column number is on the left
flipdot.setRow(pow(2,(countz)%ROWS));//low significant bits are lower rows (when connector at top)