working version 1

This commit is contained in:
2025-08-27 17:30:39 +02:00
parent d8943c00ab
commit 3c1ddb52a2
4 changed files with 152 additions and 87 deletions

View File

@@ -6,6 +6,8 @@ public:
void setHigh();
void setLow();
void setLedLevel(uint32_t level);
uint32_t getLedLevel() const;
const uint8_t getLedResolutionBits() const;
bool read();
int getPinNumber() const;
bool isOutput() const;
@@ -13,6 +15,8 @@ public:
private:
uint8_t ledChannel = 0; // LED channel for PWM
uint8_t pinNumber;
uint32_t ledLevel = 0;
const uint8_t ledResolutionBits = 12;
bool output;
bool isLed = false; // Flag to indicate if this pin is used for LED control
};