remove sound_pwm

This commit is contained in:
steve 2023-07-27 10:49:37 +01:00
parent 67af962a62
commit b422bc5049
2 changed files with 0 additions and 27 deletions

View File

@ -1,16 +0,0 @@
#include <Arduino.h>
#include "sound_pwm.h"
static unsigned gpio;
void PWM::begin(unsigned gpio) {
::gpio = gpio;
}
void PWM::stop() {
noTone(gpio);
}
void PWM::start(unsigned freq) {
tone(gpio, freq);
}

View File

@ -1,11 +0,0 @@
#ifndef __SOUND_PWM_H__
#define __SOUND_PWM_H__
class PWM {
public:
void begin(unsigned gpio);
void stop();
void start(unsigned freq);
};
#endif