mirror of
https://github.com/jscrane/r65emu.git
synced 2024-06-17 23:29:30 +00:00
remove sound_pwm
This commit is contained in:
parent
67af962a62
commit
b422bc5049
|
@ -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);
|
||||
}
|
11
sound_pwm.h
11
sound_pwm.h
|
@ -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
|
Loading…
Reference in New Issue
Block a user