# This overlay enables waveshare32b (ili9340) display and ads7846 touchscreen on Orange PI Zero # LCD and Touch uses same SPI interface (spi_1), but for touch (CS1) used pin PA10 # APT dependencies apt install xserver-xorg-video-fbdev # Install: # Download *.dts file and apply it: armbian-add-overlay waveshare32b.dts # Upload xorg_screen.conf to /etc/X11/xorg.conf.d/99-fbdev.conf # Upload xorg_touch.conf to /etc/X11/xorg.conf.d/99-touch.conf # Add "spi-add-cs1" to "overlays" section of /boot/armbianEnv.txt # Note: For touch calibration you need evdev instead of libinput apt install xserver-xorg-input-evdev # Pinout: PA10 - SPI CS1 (Touch) PA13 - SPI CS0 (Screen) PA14 - SPI CLK PA15 - SPI MOSI PA16 - SPI MISO PA00 - RST (Screen) PA01 - IRQ (Touch) PA02 - DC (Screen) # DS3231 on i2c0 as primary RTC: 1. Apply dts: armbian-add-overlay ds3231_as_RTC0.dts 2. Add "i2c0" to "overlays" section of /boot/armbianEnv.txt 3. Reboot. ** `hwclock -w` - Set current DT to RTC ** `hwclock -r` - Set current DT from RTC