MCPcopy Create free account
hub / github.com/IRMP-org/IRMP / tone

Function tone

examples/Interrupt/PinDefinitionsAndMore.h:74–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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.
74void tone(uint8_t aPinNumber, unsigned int aFrequency){
75 ledcAttachPin(aPinNumber, TONE_LEDC_CHANNEL);
76 ledcWriteTone(TONE_LEDC_CHANNEL, aFrequency);
77}
78void tone(uint8_t aPinNumber, unsigned int aFrequency, unsigned long aDuration){
79 ledcAttachPin(aPinNumber, TONE_LEDC_CHANNEL);
80 ledcWriteTone(TONE_LEDC_CHANNEL, aFrequency);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected