Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using code on TTGO T4 board #1

Closed
fa1ke5 opened this issue Oct 23, 2018 · 0 comments
Closed

Using code on TTGO T4 board #1

fa1ke5 opened this issue Oct 23, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@fa1ke5
Copy link

fa1ke5 commented Oct 23, 2018

On TTGO T4 GPIO26 used for DC signal of LCD. I make some changing in source code.
In i_sound.c i2s_set_dac_mode(I2S_DAC_CHANNEL_LEFT_EN); used GPIO26, i change it to
i2s_set_dac_mode(I2S_DAC_CHANNEL_RIGHT_EN);
but initialisation steel use both GPIO25 and GPIO26 for internal DAC, and im making some more changes
i2s_set_pin(I2S_NUM_0, NULL) //NULL is using both GPIOs
change to
i2s_set_pin(I2S_NUM_0, &pin_config);

and adding GPIO struct

static const i2s_pin_config_t pin_config = {
.data_out_num = 25
};

Now all work fine (but SPI work only on 26-30 mHz, for TTGO T4 need additional change in spi_lcd.c)

@jkirsons jkirsons added the bug Something isn't working label Oct 23, 2018
@jkirsons jkirsons self-assigned this Oct 23, 2018
@fa1ke5 fa1ke5 closed this as completed Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants