1

update pcspkdemo

This commit is contained in:
2022-07-11 18:32:39 +02:00
parent 24c418eb0a
commit 304eadc959
3 changed files with 10 additions and 7 deletions

View File

@ -0,0 +1,20 @@
#ifndef __PCSPKdemo_INCLUDE_H_
#define __PCSPKdemo_INCLUDE_H_
#include "kernel/Globals.h"
#include "kernel/threads/Thread.h"
class PCSPKdemo : public Thread {
private:
PCSPKdemo(const PCSPKdemo& copy) = delete;
void (PCSPK::*melody)(void); // Allow to pass a melody to play when initializing the demo
public:
PCSPKdemo(void (PCSPK::*melody)(void)) : melody(melody) {
kout << "Initialized PCSPKdemo" << endl;
}
void run() override;
};
#endif