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

DAC audio being lost when using the screen #9

Open
duracell80 opened this issue Jan 29, 2021 · 7 comments
Open

DAC audio being lost when using the screen #9

duracell80 opened this issue Jan 29, 2021 · 7 comments

Comments

@duracell80
Copy link

On the pirate audio board, is there anything in the LCD driver here that could be causing the audio to cut out from the DAC when using the screen?

An initial thought I had was the backlight pins, a conflict there or something similar?

@duracell80
Copy link
Author

In image.py in examples the backlight pin is set to 19 possibly causing the sound to drop. Should this be 13?

@mo6
Copy link

mo6 commented Apr 23, 2021

I experience this issue also. Sounds works fine, but when after using the image.py script the sounds stops working.

@mo6
Copy link

mo6 commented Apr 23, 2021

Commenting the backlight config seems to fix this, though.

@mo6
Copy link

mo6 commented Apr 23, 2021

Like this:

disp = ST7789.ST7789(
    port=0,
    cs=ST7789.BG_SPI_CS_FRONT,  # BG_SPI_CS_BACK or BG_SPI_CS_FRONT
    dc=9,
#    backlight=19,               # 18 for back BG slot, 19 for front BG slot.
    spi_speed_hz=80 * 1000 * 1000,
    offset_left=40 if display_type == "round" else 0
)

@laust0rm
Copy link

laust0rm commented May 6, 2021

I used this library, but 1. the display is only showing white, probably because I used a 480x320 screen and the resolution is wrong, so not actually a big deal, 2. it doesn't turn off. is there a function of the display object that resets it? also, i haven't connected the reset pin, however I don't know if that has something to do with this problem.

@laust0rm
Copy link

laust0rm commented May 6, 2021

Okay, I'm a little dumb and after 10 minutes of digging into the init() of the lib I found out that not only can you specify the reset pin, you can also set the resolution, so sorry I was posting before thinkig. :/

@josephernest
Copy link

Worked for me with backlight=13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants