letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.26k stars 2.21k forks source link

[DeviceStruct] Add PinDirection flag for PIN1..PIN3 #5116

Closed tonhuisman closed 4 hours ago

tonhuisman commented 4 weeks ago

Feature:

Example:

Device[deviceCount].Pin1Direction = gpio_direction::gpio_output;

With this added to the Plugin device definition, only GPIO pins with output capability can be selected.

TODO: