123456789101112131415161718192021222324252627 |
- #ifndef ES8311AUDIOSINK_H
- #define ES8311AUDIOSINK_H
- #include "driver/i2s.h"
- #include <vector>
- #include <iostream>
- #include "BufferedAudioSink.h"
- #include <stdio.h>
- #include <string.h>
- #include "driver/gpio.h"
- #include "driver/i2c.h"
- #include <sys/unistd.h>
- #include <sys/stat.h>
- #include "esp_err.h"
- #include "esp_log.h"
- class ES8311AudioSink : public BufferedAudioSink
- {
- public:
- ES8311AudioSink();
- ~ES8311AudioSink();
- void writeReg(uint8_t reg_add, uint8_t data);
- void volumeChanged(uint16_t volume);
- private:
- };
- #endif
|