Implemented tone and noTone; fixes #980 (#6402)

* Implemented tone
* Tone uses queue; implemented setToneChannel
This commit is contained in:
Tomáš Pilný
2022-03-10 16:26:30 +01:00
committed by GitHub
parent 52e018198b
commit 68daea4a4a
3 changed files with 136 additions and 0 deletions

View File

@ -195,6 +195,10 @@ extern "C" void configTime(long gmtOffset_sec, int daylightOffset_sec,
extern "C" void configTzTime(const char* tz,
const char* server1, const char* server2 = nullptr, const char* server3 = nullptr);
void setToneChannel(uint8_t channel = 0);
void tone(uint8_t _pin, unsigned int frequency, unsigned long duration = 0);
void noTone(uint8_t _pin);
// WMath prototypes
long random(long);
#endif /* __cplusplus */