21 #include "../../include/esp3d_config.h"
26 #include "../../core/settings_esp3d.h"
27 #include "../../core/hal.h"
30 #define BEEP_DURATION 200
31 #if defined(ARDUINO_ARCH_ESP8266)
32 extern void tone(uint8_t _pin,
unsigned int frequency,
unsigned long duration);
33 #endif //ARDUINO_ARCH_ESP8266
42 buzzer_tick.once_ms(current->
duration, process);
96 void BuzzerDevice::no_tone()
103 return !(_head ==
nullptr);
107 while (_head !=
nullptr) {
112 bool BuzzerDevice::addToneToList(
int frequency,
int duration)
115 bool startprocess =
false;
117 tmp->
_next =
nullptr;
154 void BuzzerDevice::purgeData()
172 addToneToList(frequency, duration);
176 #endif //BUZZER_DEVICE