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_uC.h

29 lines
668 B
C
Raw Normal View History

#ifndef ROW_H
#define ROW_H
#include <RowBase.h>
#include <RowScanner_PinsArray.h>
#include <Debouncer_4Samples.h>
/*
Configuration
-------------
Instantiation
-------------
todo - see RowDH
*/
class Row_uC : public RowBase
{
private:
RowScanner_PinsArray scanner;
Debouncer_4Samples debouncer;
public:
Row_uC(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-10 03:11:18 +00:00
uint8_t scan(uint16_t& rowEnd);
uint8_t debounce(const uint8_t rowState, uint8_t& debounced);
};
#endif