arduino-audio-driver
Loading...
Searching...
No Matches
M5stackAtomEchoS3R.h
Go to the documentation of this file.
1#pragma once
2#include "AudioBoard.h"
3
4namespace audio_driver {
5
12 public:
14#if defined(IS_ZEPHYR)
15 // add i2c codec pins: scl, sda, port, frequency
16 addI2C(PinFunction::CODEC, DEVICE_DT_GET(DT_ALIAS(i2c_1)));
17 // add i2s pins: mclk, bck, ws,data_out, data_in ,(port)
18 addI2S(PinFunction::CODEC, DEVICE_DT_GET(DT_ALIAS(i2s_1)));
19
20 // add other pins
21 addPin(PinFunction::PA, GPIO_DT_SPEC_GET(DT_ALIAS(gpio_pa), gpios), PinLogic::Output);
22 addPin(PinFunction::KEY, GPIO_DT_SPEC_GET(DT_ALIAS(key_1), gpios), PinLogic::InputActiveLow, 1);
23#else
24 // add i2c codec pins: scl, sda, port, frequency
25 addI2C(PinFunction::CODEC, 0, 45, 0x18);
26 // add i2s pins: mclk, bck, ws,data_out, data_in ,(port)
27 addI2S(PinFunction::CODEC, 11, 17, 3, 48, 4);
28
29 // add other pins
32#endif
33 }
34};
35
40
41} // namespace audio_driver
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
Pins for M5stack Atom EchoS3R.
Definition M5stackAtomEchoS3R.h:11
PinsM5stackAtomEchoS3RClass()
Definition M5stackAtomEchoS3R.h:13
static AudioDriverES8311Class AudioDriverES8311
Definition AudioDriver.h:2162
static AudioBoard M5stackAtomEchoS3R
Definition M5stackAtomEchoS3R.h:39
static PinsM5stackAtomEchoS3RClass PinsM5stackAtomEchoS3R
Definition M5stackAtomEchoS3R.h:37
Namespace for audio driver components.
Definition AudioBoard.h:5