arduino-audio-driver
Loading...
Searching...
No Matches
AudioKitEs8388v1.h
Go to the documentation of this file.
1#pragma once
2#include "AudioBoard.h"
3
4#define DEV(dev) GPIO_DT_SPEC_GET(DT_ALIAS(dev))
5#define KEY(key) GPIO_DT_SPEC_GET(DT_ALIAS(key), gpios)
6
7namespace audio_driver {
8
15 public:
17#if defined(IS_ZEPHYR)
18 // add i2c
20 // add i2s
22
23 // add other pins
34#else
35 // sd pins 14, 2, 15, 13
37 // add i2c codec pins: scl, sda, port, frequency
39 // add i2s pins: mclk, bck, ws,data_out, data_in ,(port)
40 addI2S(PinFunction::CODEC, 0, 27, 25, 26, 35);
41
42 // add other pins
53#endif
54 }
55};
56
61
62} // namespace audio_driver$
#define DEV(dev)
Definition AudioKitEs8388v1.h:4
Defitintion for audio board pins and an audio driver.
Definition AudioBoard.h:13
All pins for i2s, spi, i2c and other pins.
Definition DriverDeviceInfo.h:20
bool addI2C(InfoI2C pin)
Definition DriverDeviceInfo.h:56
bool addI2S(InfoI2S pin)
Definition DriverDeviceInfo.h:26
bool addPin(InfoGPIO pin)
Definition DriverDeviceInfo.h:86
bool addSPI(InfoSPI pin)
Definition DriverDeviceInfo.h:41
Pins for Es8388 AudioDriver - use the PinsAudioKitEs8388v1 object!
Definition AudioKitEs8388v1.h:14
PinsAudioKitEs8388v1Class()
Definition AudioKitEs8388v1.h:16
static AudioBoard AudioKitEs8388V1
Definition AudioKitEs8388v1.h:60
static PinsAudioKitEs8388v1Class PinsAudioKitEs8388v1
Definition AudioKitEs8388v1.h:58
static AudioDriverES8388Class AudioDriverES8388
Definition AudioDriver.h:2166
Namespace for audio driver components.
Definition AudioBoard.h:5
static InfoSPI ESP32PinsSD
Default SPI pins for ESP32 Lyrat, AudioDriver etc CLK, MISO, MOSI, CS.
Definition IDriverDeviceInfo.h:120