mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-12-01 14:50:54 +00:00
23 lines
385 B
C++
23 lines
385 B
C++
#ifndef __TEENSY_SPEAKER_H
|
|
#define __TEENSY_SPEAKER_H
|
|
|
|
#include "physicalspeaker.h"
|
|
|
|
class TeensySpeaker : public PhysicalSpeaker {
|
|
public:
|
|
TeensySpeaker(uint8_t pinNum);
|
|
virtual ~TeensySpeaker();
|
|
|
|
virtual void toggleAtCycle(uint32_t c);
|
|
virtual void maintainSpeaker(uint32_t c);
|
|
|
|
private:
|
|
bool speakerState;
|
|
uint8_t speakerPin;
|
|
|
|
uint32_t nextTransitionAt;
|
|
|
|
};
|
|
|
|
#endif
|