2016-06-02 15:58:33 +00:00
|
|
|
#ifndef ROW_H
|
|
|
|
#define ROW_H
|
|
|
|
|
|
|
|
#include <RowBase.h>
|
2016-06-09 19:29:31 +00:00
|
|
|
#include <RowScanner_PinsArray.h>
|
2016-06-03 06:12:29 +00:00
|
|
|
#include <Debouncer_4Samples.h>
|
2016-06-02 15:58:33 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
Configuration
|
|
|
|
-------------
|
|
|
|
|
|
|
|
Instantiation
|
2016-06-03 06:12:29 +00:00
|
|
|
-------------
|
|
|
|
todo - see Row_DH
|
2016-06-02 15:58:33 +00:00
|
|
|
*/
|
|
|
|
class Row : public RowBase
|
|
|
|
{
|
|
|
|
private:
|
2016-06-09 19:29:31 +00:00
|
|
|
RowScanner_PinsArray scanner;
|
2016-06-03 06:12:29 +00:00
|
|
|
Debouncer_4Samples debouncer;
|
2016-06-02 15:58:33 +00:00
|
|
|
public:
|
2016-06-06 20:23:40 +00:00
|
|
|
//Row constructor was like Row_DH constructor
|
2016-06-09 19:29:31 +00:00
|
|
|
Row(const uint8_t strobePin, const uint8_t readPins[], const uint8_t READ_PIN_COUNT,
|
|
|
|
Key *const ptrsKeys[])
|
2016-06-07 01:37:48 +00:00
|
|
|
: RowBase(ptrsKeys), scanner(strobePin, readPins, READ_PIN_COUNT) { }
|
2016-06-06 06:52:14 +00:00
|
|
|
virtual void process();
|
2016-06-02 15:58:33 +00:00
|
|
|
};
|
|
|
|
#endif
|