Skip to content

Help  #2

@vahithosan

Description

@vahithosan

Hi. Thanks for sharing library. I have nokia 1202 lcd like hx1230. I want use this lcd with esp32. But I can't.
I checked the lcd screen with arduino. Lcd is working. But It doesn't work with micropython.
I tried different micropython versions. (1.18, 1.19)
I wonder if I can't define 9-bit spi? Can you help me?

MicroPython v1.19.1-803-g1583c1f67 on 2023-01-16; ESP32 module with ESP32

import hx1230_fb
from machine import Pin, SPI
# from machine import Pin, SoftSPI
spi = SPI(1, baudrate=4000000, polarity=0, phase=0, sck=Pin(14), mosi=Pin(13))
# spi = SoftSPI(baudrate=4000000, polarity=0, phase=0, sck=Pin(18), mosi=Pin(23), miso=Pin(19))
cs = Pin(15, Pin.OUT)
rst = Pin(4, Pin.OUT)
lcd = hx1230_fb.HX1230_FB_SPI(spi, cs, rst)
lcd.fill(0)
lcd.text('Hello World!',0,0,1)
lcd.show()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions