acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
Speaker.h (384B)
1 #pragma once 2 3 #include <Arduino.h> 4 #include <AudioFileSourcePROGMEM.h> 5 #include <AudioGeneratorRTTTL.h> 6 #include <AudioOutputI2S.h> 7 #include <driver/i2s.h> 8 9 #include "pins.h" 10 11 #define BOARD_I2S_PORT I2S_NUM_0 12 #define SAMPLE_RATE 44100 13 14 void playNotificationSound(); 15 void playRTTTL(const char* rtttl); 16 void playTone(float frequency, int duration, int volume = 16383); 17 void setupI2S();