123456789101112131415161718192021222324 |
- #ifndef LED_IOE_H
- #define LED_IOE_H
- #include <Arduino.h>
- #include <inttypes.h>
- #include <Wire.h>
- #include <LEDInterface.h>
- #include <PortInterface.h>
-
- /* A LED_IOE object is an I/O expander pin that is connected to an LED indicator light.
- Input/Ouput Direction configuration are set to ouput in PortWrite_*.begin() and PortRead_*.begin(). todo PortRead_*??
- */
- class LED_IOE : public LEDInterface
- {
- private:
- PortInterface& refPort;
- const uint8_t pin; //bit pattern, 1 is IOE pin to LED
-
- public:
- LED_IOE(PortInterface& refPort, const uint8_t pin)
- : refPort(refPort), pin(pin) {}
- virtual void on();
- virtual void off();
- };
- #endif
|