1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 14:43:51 +00:00

Add virtual get_flags() to GPIOPin and implementation in InternalGPIOPin derivatives (#8151)

This commit is contained in:
Djordje Mandic
2025-02-03 04:55:55 +01:00
committed by GitHub
parent 6e5e681055
commit 8de5af4eec
6 changed files with 16 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ class ESP8266GPIOPin : public InternalGPIOPin {
void detach_interrupt() const override;
ISRInternalGPIOPin to_isr() const override;
uint8_t get_pin() const override { return pin_; }
gpio::Flags get_flags() const override { return flags_; }
bool is_inverted() const override { return inverted_; }
protected: