Jump to content

Sári Zoltán

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Sári Zoltán

  1. In my first post, I shared it in a file called "spi-display-overlay.txt". Yes, I know it’s strange that it’s in a .txt file — but it’s there nonetheless. But you know what? Here it is : /dts-v1/; /plugin/; / { compatible = "allwinner,sun50i-h616"; /* Orange Pi Lite SoC */ fragment@0 { target = <&spi0>; /* SPI0 bus */ __overlay__ { status = "okay"; }; }; fragment@1 { target = <&spi0>; __overlay__ { #address-cells = <1>; #size-cells = <0>; ili9486: ili9486@0 { compatible = "ilitek,ili9486"; reg = <0>; /* CS0 */ spi-max-frequency = <24000000>; /* Speed of SPI */ rotate = <0>; fps = <30>; buswidth = <8>; regwidth = <16>; bgr = <0>; reset-gpios = <&pio 2 8 1>; /* PC08 */ dc-gpios = <&pio 2 7 0>; /* PC07 */ init = <0x10000b0 0x00 0x1000011 0x20000ff 0x100003a 0x55 0x1000036 0x28 0x10000c2 0x44 0x10000c5 0x00 0x00 0x00 0x00 0x10000e0 0x0f 0x1f 0x1c 0x0c 0x0f 0x08 0x48 0x98 0x37 0x0a 0x13 0x04 0x11 0x0d 0x00 0x10000e1 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00 0x1000036 0x28 0x1000011 0x1000029>; }; }; }; };
  2. Step-by-step Guide to Install ILI9486 Display on Orange Pi Lite: 1.Create the overlay source file: cd /boot sudo nano spi-display-overlay.dts Paste your custom overlay configuration for SPI, DC, and reset GPIOs. 2.Compile the overlay to a binary (.dtbo) sudo dtc -@ -I dts -O dtb -o spi-display-overlay.dtbo spi-display-overlay.dts 3.Move the compiled overlay to the system overlays directory sudo cp spi-display-overlay.dtbo /boot/overlay-user/ 4.Enable the overlay in Armbian environment sudo nano /boot/armbianEnv.txt Add the line: overlays=spi-display-overlay 5. Reboot the system 6. Verify the framebuffer device is created: ls /dev/fb* Output should include /dev/fb0 7.Redirect framebuffer output to the SPI display sudo cat /dev/fb0 > /dev/fb0 It's just a test, it's a static image 8.Modify /boot/armbianEnv.txt Edit the armbianEnv file and add the following lines to ensure the framebuffer continuously updates on your display: extraargs=console=tty1 fbcon=map:0 fbcon=font:VGA8x8 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u ( 9.Troubleshoot reset GPIO if needed ) If display stays white, try another GPIO pin for reset in the overlay and recompile. Step 10: Post it on the Armbian forum and Reddit. I haven’t worked with the touch sensor yet, but it’s already 5 AM 0.o I hope this helps, and good luck!
  3. Hi everyone! I thought I’d share my experience. I successfully got a display working on my Orange Pi Lite using this: https://github.com/jonathan-gatard/ili9486-xpt2046/tree/main I followed the instructions from the link above. At first, I connected the screen to the Pi and configured the pins in the device overlay. However, the reset pin, which was PD25, kept giving errors. Later, I rewired the display to a different pin, but it still didn’t work. Finally, when I moved it to a third pin, PC08, it worked! Until then, the screen just showed white, but after that, it started working perfectly. spi-display-overlay.txt
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines