This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
2016-09-23 07:13:12 +00:00
|
|
|
#ifndef PORTINTERFACE_H
|
|
|
|
#define PORTINTERFACE_H
|
2016-05-09 14:05:08 +00:00
|
|
|
#include <Arduino.h>
|
|
|
|
#include <inttypes.h>
|
|
|
|
|
|
|
|
/*
|
2016-07-15 05:15:38 +00:00
|
|
|
Port classes are the keybrd library's interface to microcontroller ports or I/O expander ports.
|
2016-05-09 14:05:08 +00:00
|
|
|
*/
|
2016-09-23 07:13:12 +00:00
|
|
|
class PortInterface
|
2016-05-09 14:05:08 +00:00
|
|
|
{
|
|
|
|
public:
|
2016-09-11 15:54:10 +00:00
|
|
|
virtual void begin(const uint8_t strobeOn)=0;
|
2016-09-23 07:13:12 +00:00
|
|
|
virtual void write(const uint8_t strobePin, const bool pinLogicLevel)=0;
|
2016-07-13 13:17:35 +00:00
|
|
|
virtual uint8_t read()=0;
|
2016-05-09 14:05:08 +00:00
|
|
|
};
|
|
|
|
#endif
|