# How to use luma lcd with orange pi zero 2w

**URL:** <https://dietpi.com/forum/t/how-to-use-luma-lcd-with-orange-pi-zero-2w/23858>\
**Category:** Troubleshooting\
**Created:** [24 July 2025 12:19 UTC](https://dietpi.com/forum/t/how-to-use-luma-lcd-with-orange-pi-zero-2w/23858 "2025-07-24T12:19:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ropone16](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/r/bcef8e/32.png) [@ropone16](https://dietpi.com/forum/u/ropone16)\
**Post date:** [24 July 2025 12:19 UTC](https://dietpi.com/forum/t/how-to-use-luma-lcd-with-orange-pi-zero-2w/23858/1 "2025-07-24T12:19:26Z")

</div>

hello, i am new to linux and orange pi, recently i bought a orange pi zero 2w to make a handheld retro games console, but i cant seem to get luma lcd to work, its keeps trying to use RPi.GPIO, i have tried forcing it to use OPi.GPIO by include “import OPi.GPIO as GPIO” but it wont work, i am using a ili9341 display, i am using the spi0 bus with gpio Dc = 11 and reset = 7(physical pins).

my code is this:  
import OPi.GPIO as GPIO  
from luma.core.interface.serial import spi  
from luma.lcd.device import ili9341

spi\_bus = 0  
spi\_device = 0

serial = spi(port=0, device=0, gpio\_DC=0, gpio\_RST=2, bus\_speed\_hz=32000000)  
device = ili9341(serial, width=320, height=240, rotate=0)

device.display(“hello”)

i cant buy a hdmi display since i have a size constraint and i have pretty much maxed out my buget.

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [19 January 2026 00:20 UTC](https://dietpi.com/forum/t/how-to-use-luma-lcd-with-orange-pi-zero-2w/23858/2 "2026-01-19T00:20:19Z")

</div>

Closed on 19 January 2026 00:20 UTC

This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.
