esp32 tone
Posted: Mon Jan 08, 2018 5:06 pm
Hi why not working tone in esp32 ?
sample :
tone(SOUND_PIN, 1000, 1000);
delay(1000);
noTone(SOUND_PIN)
sample :
tone(SOUND_PIN, 1000, 1000);
delay(1000);
noTone(SOUND_PIN)
Code: Select all
ledcWriteTone(uint8_t channel, double freq);
Code: Select all
ledcSetup(uint8_t channel, double freq, uint8_t resolution_bits);