mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-29 05:36:39 +00:00
Update xdrv_42_i2s_audio.ino
This commit is contained in:
parent
bea43fea18
commit
9098161c10
@ -29,9 +29,13 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_TTGO_WATCH
|
#ifdef USE_TTGO_WATCH
|
||||||
|
#undef TTGO_PWR_ON
|
||||||
|
#undef TTGO_PWR_OFF
|
||||||
#define TTGO_PWR_ON TTGO_audio_power(true);
|
#define TTGO_PWR_ON TTGO_audio_power(true);
|
||||||
#define TTGO_PWR_OFF TTGO_audio_power(false);
|
#define TTGO_PWR_OFF TTGO_audio_power(false);
|
||||||
#else
|
#else
|
||||||
|
#undef TTGO_PWR_ON
|
||||||
|
#undef TTGO_PWR_OFF
|
||||||
#define TTGO_PWR_ON
|
#define TTGO_PWR_ON
|
||||||
#define TTGO_PWR_OFF
|
#define TTGO_PWR_OFF
|
||||||
#endif // USE_TTGO_WATCH
|
#endif // USE_TTGO_WATCH
|
||||||
@ -121,7 +125,7 @@ void sayTime(int hour, int minutes, AudioGeneratorTalkie *talkie) {
|
|||||||
TTGO_PWR_ON
|
TTGO_PWR_ON
|
||||||
talkie = new AudioGeneratorTalkie();
|
talkie = new AudioGeneratorTalkie();
|
||||||
talkie->begin(nullptr, out);
|
talkie->begin(nullptr, out);
|
||||||
|
|
||||||
bool pm = (hour >= 12);
|
bool pm = (hour >= 12);
|
||||||
uint8_t *spHour[] = { spTWELVE, spONE, spTWO, spTHREE, spFOUR, spFIVE, spSIX,
|
uint8_t *spHour[] = { spTWELVE, spONE, spTWO, spTHREE, spFOUR, spFIVE, spSIX,
|
||||||
spSEVEN, spEIGHT, spNINE, spTEN, spELEVEN };
|
spSEVEN, spEIGHT, spNINE, spTEN, spELEVEN };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user