You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DigitalOutput.h 295B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <stdint.h>
  3. #include "ILifeCycle.h"
  4. class DigitalOutput
  5. : public ILifeCycle
  6. {
  7. public:
  8. explicit DigitalOutput(uint8_t mPin);
  9. void begin() override;
  10. void setEnabled(bool enabled);
  11. bool isEnabled() const;
  12. protected:
  13. const uint8_t m_pin;
  14. };