|
|
@@ -2,14 +2,14 @@ |
|
|
|
/* |
|
|
|
Strobes the row and reads the columns. |
|
|
|
*/ |
|
|
|
ReadPort* const Scanner_Port::scan() |
|
|
|
uint8_t Scanner_Port::scan() |
|
|
|
{ |
|
|
|
//strobe row on |
|
|
|
if (STROBE_ON == LOW) |
|
|
|
if (STROBE_ON == LOW) //if activeLow |
|
|
|
{ |
|
|
|
refStrobePort.setActivePinLow(strobePin); |
|
|
|
} |
|
|
|
else //activeLow |
|
|
|
else //if activeHigh |
|
|
|
{ |
|
|
|
refStrobePort.setActivePinHigh(strobePin); |
|
|
|
} |
|
|
@@ -19,14 +19,14 @@ ReadPort* const Scanner_Port::scan() |
|
|
|
refReadPort.read(); |
|
|
|
|
|
|
|
//strobe row off |
|
|
|
if (STROBE_ON == LOW) |
|
|
|
if (STROBE_ON == LOW) //if activeLow |
|
|
|
{ |
|
|
|
refStrobePort.setActivePinHigh(strobePin); |
|
|
|
} |
|
|
|
else //activeLow |
|
|
|
else //if activeHigh |
|
|
|
{ |
|
|
|
refStrobePort.setActivePinLow(strobePin); |
|
|
|
} |
|
|
|
|
|
|
|
return &refReadPort; |
|
|
|
return refReadPort.getPortState(); |
|
|
|
} |