tested on Complex Arts board, ADC and DAC working, no gyro yet

This commit is contained in:
Miller Puckette 2024-10-16 12:21:56 -05:00
parent 98f2a5beb9
commit 36537ac580
2 changed files with 11 additions and 4 deletions

View file

@ -177,17 +177,17 @@ static void initdacs( void)
get_i2s_pins(I2S_NUM_0, (board_i2s_pin_t *)(&i2s_pin_cfg));
#else /* PD_LYRAT */
i2s_pin_config_t i2s_pin_cfg = {
#if 1 /* generic board 1 - edit this as needed */
#if 0 /* generic board 1 - edit this as needed */
.bck_io_num = 13, /* bit clock */
.ws_io_num = 33, /* Word select, aka left right clock */
.data_out_num = 32, /* Data out from ESP32, to DIN on 38357A */
.data_in_num = 35 /* data from ADC */
#endif
#if 0 /* complex arts sensorboard */
#if 1 /* complex arts sensorboard */
.bck_io_num = 33, /* bit clock */
.ws_io_num = 25, /* Word select, aka left right clock */
.data_out_num = 32, /* Data out from ESP32, to DIN on 38357A */
.data_in_num = I2S_PIN_NO_CHANGE /* no ADC */
.data_in_num = 26 /* ADC */
#endif
};
#endif /* PD_LYRAT */

View file

@ -42,3 +42,10 @@ void net_sendudp(void *msg, int len, int port); /* send whatev */
void net_sendtcp(void *msg, int len);
extern char wifi_ipaddr[];
#endif
#ifndef PIN_BIT_CLOCK /* fallback pin locations for I2S audio I/O */
#define PIN_BIT_CLOCK 13 /* bit clock */
#define PIN_WORD_SELECT 33 /* word select */
#define PIN_DATA_OUT 32 /* data out from ESP32 to DAC */
#define PIN_DATA_IN 35 /* data in from ADC to ESP32 */
#endif /* PIN_BIT_CLOCK */