feat: example with multiple various functionallity

This commit is contained in:
2025-10-08 12:25:31 +02:00
parent 0fcebc0459
commit 52f9098c1b
4 changed files with 473 additions and 79 deletions

View File

@@ -18,6 +18,7 @@ public:
bool isReady() const;
uint8_t getVolume() const;
bool isLoopEnabled() const;
void play();
void stop();
@@ -26,6 +27,7 @@ public:
void next();
void previous();
void setVolume(uint8_t volume);
void setLoop(bool enabled);
private:
static constexpr uint16_t POTENTIOMETER_SAMPLE_INTERVAL_MS = 200;
@@ -47,4 +49,5 @@ private:
uint8_t m_potentiometerPin;
uint8_t m_volume;
bool m_playerReady;
bool m_loopEnabled;
};