| 72 | #if ESP_ARDUINO_VERSION <= ESP_ARDUINO_VERSION_VAL(2, 0, 2) |
| 73 | #define TONE_LEDC_CHANNEL 1 // Using channel 1 makes tone() independent of receiving timer -> No need to stop receiving timer. |
| 74 | void tone(uint8_t aPinNumber, unsigned int aFrequency){ |
| 75 | ledcAttachPin(aPinNumber, TONE_LEDC_CHANNEL); |
| 76 | ledcWriteTone(TONE_LEDC_CHANNEL, aFrequency); |
| 77 | } |
| 78 | void tone(uint8_t aPinNumber, unsigned int aFrequency, unsigned long aDuration){ |
| 79 | ledcAttachPin(aPinNumber, TONE_LEDC_CHANNEL); |
| 80 | ledcWriteTone(TONE_LEDC_CHANNEL, aFrequency); |
nothing calls this directly
no outgoing calls
no test coverage detected