Skip to content

Instantly share code, notes, and snippets.

@dmpanch
Created October 9, 2021 22:59
Show Gist options
  • Save dmpanch/60f47f863869ff244d98577a56a2eeff to your computer and use it in GitHub Desktop.
Save dmpanch/60f47f863869ff244d98577a56a2eeff to your computer and use it in GitHub Desktop.
# enable pwm on GPIO 13
dtparam=audio=on
dtoverlay=pwm,pin=13,func=4,enable_jack
# display settings
gpio=0-9=a2
gpio=12-17=a2
gpio=20-25=a2
dtoverlay=dpi24
enable_dpi_lcd=1
display_default_lcd=1
extra_transpose_buffer=2
dpi_group=2
dpi_mode=87
dpi_output_format=0x7F216
hdmi_timings=480 0 26 16 10 640 0 25 10 15 0 0 0 60 0 32000000 1
dtoverlay=waveshare-28dpi-3b-4b
dtoverlay=waveshare-28dpi-3b
dtoverlay=waveshare-28dpi-4b
# rotate display for 270 degrees, so it is more convenient to install it in the case, otherwise you will see the black edge of the screen
display_rotate=3
disable_splash=1
@sean256
Copy link

sean256 commented Oct 27, 2021

@dmpanch
I'm a total newb, can you explain why this works:

# enable pwm on GPIO 13
dtparam=audio=on
dtoverlay=pwm,pin=13,func=4,enable_jack

Isn't GPIO 13 used by the waveshare 2.8" screen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment