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/PortReadInterface.h

19 lines
463 B
C
Raw Normal View History

#ifndef PORTREADINTERFACE_H
#define PORTREADINTERFACE_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-07-18 02:03:03 +00:00
If your 8-bit AVR (Teensy 2) is running low on memory, using a smaller read_pins_t type saves SRAM.
Details are in config_key.h
2016-05-09 14:05:08 +00:00
*/
class PortReadInterface
2016-05-09 14:05:08 +00:00
{
public:
virtual void begin()=0;
virtual uint8_t read()=0;
2016-05-09 14:05:08 +00:00
};
#endif