remove sound_pwm now

This commit is contained in:
steve 2023-07-27 10:44:49 +01:00
parent 524f1664c4
commit 68478544b7
3 changed files with 0 additions and 28 deletions

View File

@ -17,6 +17,5 @@
#include "timed.h"
#include "hardware.h"
#include "sound_dac.h"
#include "sound_pwm.h"
#endif

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