iot base changes

This commit is contained in:
Siwat Sirichai 2023-12-28 11:41:20 +07:00
parent 822eb66285
commit 908c3f9c0e
13 changed files with 80 additions and 2 deletions

View file

@ -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;