Archived
1
0
This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
keybrd/src/Row.h

32 lines
814 B
C
Raw Normal View History

#ifndef ROW_H
#define ROW_H
#include <RowBase.h>
//#include <RowScanner_BitManipulation.h>
#include <RowScanner_Arduino.h>
#include <Debouncer_4Samples.h>
/*
Configuration
-------------
define and initilize DELAY_MICROSECONDS in sketch.
const unsigned int RowBase::DELAY_MICROSECONDS = 0;
Instantiation
-------------
todo - see Row_DH
*/
class Row : public RowBase
{
private:
//RowScanner_BitManipulation scanner;
RowScanner_Arduino scanner;
Debouncer_4Samples debouncer;
public:
//Row constructor was like Row_DH constructor
Row(const uint8_t strobePin, const uint8_t readPins[], const uint8_t READ_PIN_COUNT, Key *const ptrsKeys[])
: RowBase(ptrsKeys), scanner(strobePin, readPins, READ_PIN_COUNT) { }
2016-06-06 06:52:14 +00:00
virtual void process();
};
#endif