card installation checking

This commit is contained in:
Siwat Sirichai 2023-12-28 02:18:21 +07:00
parent 1862887d30
commit 1481c08d3a
10 changed files with 122 additions and 37 deletions

View file

@ -9,7 +9,7 @@ class DigitalInputCard : public ExpansionCard {
// Instantiate the card with the specified position on the dip switch
DigitalInputCard(bool bit0, bool bit1, bool bit2, bool bit3, bool bit4, bool bit5);
// Initialize the card
void begin();
bool begin();
// Refresh and Read the input from the specified pin, always refresh the input buffers
bool digitalRead(uint8_t pin);
// Read the input from the specified pin, also refresh the input buffers if refresh is true