refactor: centralize shade GPIO initialization and board guards

Use one initialization method for saved configuration and JSON updates. Reject the complete output assignment when any pin belongs to integrated board hardware, retaining separate UI validation and runtime output guards. Exercise production GPIO initialization on generic and Plus profiles.
This commit is contained in:
R. Sid Shaytay 2026-11-06 12:51:36 -08:00
parent a5afcfacea
commit d4c13d5134
6 changed files with 41 additions and 14 deletions

View file

@ -152,6 +152,7 @@ class SomfyShade : public SomfyRemote, public ShadeSettings, private MotorLink,
void commit();
void clear();
int8_t transformPosition(float fpos);
void initGPIOs();
void setGPIOs();
void triggerGPIOs(somfy_frame_t &frame);
bool usesPin(uint8_t pin);