Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working correctly when DC pin is transmitted as a variable #138

Open
dobodu opened this issue Aug 8, 2023 · 1 comment
Open

Not working correctly when DC pin is transmitted as a variable #138

dobodu opened this issue Aug 8, 2023 · 1 comment

Comments

@dobodu
Copy link

dobodu commented Aug 8, 2023

Firstly, many thanks for this wornderfull library !

I'd like to indicate a strange behaviour I noticed 👍

LCD_DC = Pin(8, Pin.OUT)
LCD_CS = Pin(9, Pin.OUT)
LCD_CLK = Pin(10, Pin.OUT)
LCD_DIN = Pin(11, Pin.OUT)
LCD_RST = Pin(12, Pin.OUT)
LCD_BL = Pin(13, Pin.OUT)
TFT_WIDTH = 240
TFT_HEIGHT = 320

Working correctly :

display = st7789.ST7789(spi, width=TFT_WIDTH, height=TFT_HEIGHT, reset=LCD_RST,
cs=LCD_CS, dc=Pin(8, Pin.OUT), backlight=LCD_BL, rotation=1, buffer_size=0, options=0)

Not Working (Black screen)

display = st7789.ST7789(spi, width=TFT_WIDTH, height=TFT_HEIGHT, reset=LCD_RST,
cs=LCD_CS, dc=LCD_DC, backlight=LCD_BL, rotation=1, buffer_size=0, options=0)

Thus, there's a way for making it work as expected but it is strange that this bug applies only to the dc pin !

@russhughes
Copy link
Owner

I'll look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants