mirror column data. msbfirst. bit 0 is now top row.
This commit is contained in:
parent
ba3ccece6f
commit
7024eb09fb
|
@ -144,8 +144,9 @@ bool Flipdot::HBridgeOK() {
|
|||
void Flipdot::shiftDataRow() { //send out all data to shift registers
|
||||
|
||||
//select Rows via shift registers on own controller board
|
||||
shiftOutSlow(PIN_SR_DATA, PIN_SR_CLK, LSBFIRST, row&0xff); //lower byte
|
||||
shiftOutSlow(PIN_SR_DATA, PIN_SR_CLK, LSBFIRST, row>>8); //LSBFIRST= LSB is QH, bit 8 is QA. //upper byte
|
||||
//LSBFIRST= LSB is QH, bit 8 is QA. //upper byte
|
||||
shiftOutSlow(PIN_SR_DATA, PIN_SR_CLK, MSBFIRST, row>>8); //MSBFIRST= LSB is QH, bit 8 is QA
|
||||
shiftOutSlow(PIN_SR_DATA, PIN_SR_CLK, MSBFIRST, row&0xff); //lower byte
|
||||
digitalWrite(PIN_SR_LATCH, HIGH);
|
||||
delayMicroseconds(MICROS_SHIFT_LATCH);
|
||||
digitalWrite(PIN_SR_LATCH, LOW);
|
||||
|
@ -169,7 +170,7 @@ void Flipdot::resetColumns() {
|
|||
}
|
||||
|
||||
void Flipdot::setRow(uint16_t _row){
|
||||
row=_row;
|
||||
row=_row; //data for one column
|
||||
}
|
||||
|
||||
uint16_t Flipdot::getRow() {
|
||||
|
|
Loading…
Reference in New Issue