Parking Garage Control System
ESP32 Parking Garage – ESP-IDF/FreeRTOS
Loading...
Searching...
No Matches
esp32_gpio.h
Go to the documentation of this file.
1#ifndef ESP32_GPIO_H
2#define ESP32_GPIO_H
3
4#include "hal_state_machine.h"
5
6// Concrete Implementation for ESP32 GPIO
7class Esp32Gpio : public IGpioOutput {
8 public:
9 void setLevel(bool level) override;
10 bool getLevel() const override;
11
12 private:
13 bool currentLevel = false;
14};
15
16#endif // ESP32_GPIO_H
Definition esp32_gpio.h:7
void setLevel(bool level) override
Set GPIO output level.
Definition esp32_gpio.cpp:4
bool getLevel() const override
Get current GPIO output level.
Definition esp32_gpio.cpp:10
Interface for GPIO output abstraction.
Definition IGpioOutput.h:9
Coverage