|
@ -303,9 +303,9 @@ int i2s_init() { |
|
|
xTaskCreate(stepperTask, "StepperTask", 10000, NULL, 1, NULL); |
|
|
xTaskCreate(stepperTask, "StepperTask", 10000, NULL, 1, NULL); |
|
|
|
|
|
|
|
|
// Route the i2s pins to the appropriate GPIO
|
|
|
// Route the i2s pins to the appropriate GPIO
|
|
|
gpio_matrix_out_check(22, I2S0O_DATA_OUT23_IDX, 0, 0); |
|
|
gpio_matrix_out_check(I2S_DATA, I2S0O_DATA_OUT23_IDX, 0, 0); |
|
|
gpio_matrix_out_check(25, I2S0O_WS_OUT_IDX, 0, 0); |
|
|
gpio_matrix_out_check(I2S_BCK, I2S0O_BCK_OUT_IDX, 0, 0); |
|
|
gpio_matrix_out_check(26, I2S0O_BCK_OUT_IDX, 0, 0); |
|
|
gpio_matrix_out_check(I2S_WS, I2S0O_WS_OUT_IDX, 0, 0); |
|
|
|
|
|
|
|
|
// Start the I2S peripheral
|
|
|
// Start the I2S peripheral
|
|
|
return i2s_start(I2S_NUM_0); |
|
|
return i2s_start(I2S_NUM_0); |
|
|