rename Row to Row_uC, RowIOE to Row_IOE
This commit is contained in:
parent
c1e465f1ad
commit
1b091ecde5
@ -1,9 +1,9 @@
|
|||||||
#include "RowIOE.h"
|
#include "Row_IOE.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
process() scans the row and calls any newly pressed or released keys.
|
process() scans the row and calls any newly pressed or released keys.
|
||||||
*/
|
*/
|
||||||
void RowIOE::process()
|
void Row_IOE::process()
|
||||||
{
|
{
|
||||||
//these variables are all bitwise, one bit per key
|
//these variables are all bitwise, one bit per key
|
||||||
uint8_t rowState; //1 means pressed, 0 means released
|
uint8_t rowState; //1 means pressed, 0 means released
|
@ -14,13 +14,13 @@ Configuration
|
|||||||
Instantiation
|
Instantiation
|
||||||
-------------
|
-------------
|
||||||
*/
|
*/
|
||||||
class RowIOE : public RowBase
|
class Row_IOE : public RowBase
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
RowScanner_PinsBitwise scanner;
|
RowScanner_PinsBitwise scanner;
|
||||||
Debouncer_4Samples debouncer;
|
Debouncer_4Samples debouncer;
|
||||||
public:
|
public:
|
||||||
RowIOE( RowPort& refRowPort, const uint8_t strobePin,
|
Row_IOE( RowPort& refRowPort, const uint8_t strobePin,
|
||||||
ColPort& refColPort, Key *const ptrsKeys[])
|
ColPort& refColPort, Key *const ptrsKeys[])
|
||||||
: RowBase(ptrsKeys), scanner(refRowPort, strobePin, refColPort) { }
|
: RowBase(ptrsKeys), scanner(refRowPort, strobePin, refColPort) { }
|
||||||
virtual void process();
|
virtual void process();
|
@ -1,9 +1,9 @@
|
|||||||
#include "Row.h"
|
#include "Row_uC.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
process() scans the row and calls any newly pressed or released keys.
|
process() scans the row and calls any newly pressed or released keys.
|
||||||
*/
|
*/
|
||||||
void Row::process()
|
void Row_uC::process()
|
||||||
{
|
{
|
||||||
//these variables are all bitwise, one bit per key
|
//these variables are all bitwise, one bit per key
|
||||||
uint8_t rowState; //1 means pressed, 0 means released
|
uint8_t rowState; //1 means pressed, 0 means released
|
@ -11,16 +11,15 @@ Configuration
|
|||||||
|
|
||||||
Instantiation
|
Instantiation
|
||||||
-------------
|
-------------
|
||||||
todo - see Row_DH
|
todo - see RowDH
|
||||||
*/
|
*/
|
||||||
class Row : public RowBase
|
class Row_uC : public RowBase
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
RowScanner_PinsArray scanner;
|
RowScanner_PinsArray scanner;
|
||||||
Debouncer_4Samples debouncer;
|
Debouncer_4Samples debouncer;
|
||||||
public:
|
public:
|
||||||
//Row constructor was like Row_DH constructor
|
Row_uC(const uint8_t strobePin, const uint8_t readPins[], const uint8_t READ_PIN_COUNT,
|
||||||
Row(const uint8_t strobePin, const uint8_t readPins[], const uint8_t READ_PIN_COUNT,
|
|
||||||
Key *const ptrsKeys[])
|
Key *const ptrsKeys[])
|
||||||
: RowBase(ptrsKeys), scanner(strobePin, readPins, READ_PIN_COUNT) { }
|
: RowBase(ptrsKeys), scanner(strobePin, readPins, READ_PIN_COUNT) { }
|
||||||
virtual void process();
|
virtual void process();
|
Reference in New Issue
Block a user