2024-06-05 19:06:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
2024-06-05 22:18:23 +00:00
|
|
|
#include <AudioFileSourcePROGMEM.h>
|
2024-06-05 22:07:54 +00:00
|
|
|
#include <AudioGeneratorRTTTL.h>
|
|
|
|
#include <AudioOutputI2S.h>
|
2024-06-05 22:18:23 +00:00
|
|
|
#include <driver/i2s.h>
|
2024-06-05 19:06:51 +00:00
|
|
|
|
|
|
|
#include "pins.h"
|
|
|
|
|
|
|
|
#define BOARD_I2S_PORT I2S_NUM_0
|
|
|
|
#define SAMPLE_RATE 44100
|
|
|
|
|
2024-06-06 05:04:24 +00:00
|
|
|
void setupI2S();
|
|
|
|
void playTone(float frequency, int duration, int volume = 16383);
|
|
|
|
void playRTTTL(const char* rtttl);
|
|
|
|
void playNotificationSound();
|