File tree Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Expand file tree Collapse file tree 2 files changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -137,26 +137,6 @@ uint32_t PWMHardware::WriteTone(uint32_t freq) {
137
137
return rc;
138
138
}
139
139
140
- /* *************************************************************************/
141
- /* !
142
- @brief Stops a "tone" output on a PWM pin from WriteTone(). Must be
143
- called to stop the tone before detaching the pin.
144
- @return true if the tone was successfully stopped, false otherwise
145
- */
146
- /* *************************************************************************/
147
- void PWMHardware::WriteNoTone () {
148
- if (! _is_attached) {
149
- WS_DEBUG_PRINTLN (" [pwm] Pin not attached!" );
150
- return ; // back out
151
- }
152
-
153
- #ifdef ARDUINO_ARCH_ESP32
154
- ledcWriteTone (_pin, 0 );
155
- #else
156
- noTone (_pin);
157
- #endif
158
- }
159
-
160
140
/* *************************************************************************/
161
141
/* !
162
142
@brief Returns the pin number of the PWM pin
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ class PWMHardware {
33
33
bool DetachPin ();
34
34
bool WriteDutyCycle (uint32_t duty);
35
35
uint32_t WriteTone (uint32_t freq);
36
- void WriteNoTone ();
37
36
uint8_t GetPin ();
38
37
39
38
// Abstractions for LEDC API
You can’t perform that action at this time.
0 commit comments