iot base changes
This commit is contained in:
parent
822eb66285
commit
908c3f9c0e
13 changed files with 80 additions and 2 deletions
|
@ -2,6 +2,8 @@
|
|||
#include <ExpansionCard.hpp>
|
||||
#include <PCF8574.h>
|
||||
|
||||
#define CARD_TYPE_DIGITAL_INPUT 0x01
|
||||
|
||||
class DigitalInputCard : public ExpansionCard {
|
||||
public:
|
||||
// Instantiate the card with the specified address
|
||||
|
@ -28,6 +30,8 @@ class DigitalInputCard : public ExpansionCard {
|
|||
void unregisterCallback();
|
||||
// Load a new pin map
|
||||
void loadPinMap(uint8_t pinMap[16]);
|
||||
// Get type of card
|
||||
uint8_t getType();
|
||||
private:
|
||||
PCF8574 inputBankA;
|
||||
PCF8574 inputBankB;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue