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

disp.rotate(True) won't work #1

Open
tinyboxxx opened this issue Aug 2, 2021 · 1 comment
Open

disp.rotate(True) won't work #1

tinyboxxx opened this issue Aug 2, 2021 · 1 comment

Comments

@tinyboxxx
Copy link

Hi, the screen works fine, but I want to rotate content on the screen 180 deg in my case.

disp.rotate(True) won't work

full example:

import ssd1322
from machine import SPI,Pin
spi = SPI(2, baudrate=16000000,polarity=0, phase=0, sck=Pin(18), mosi=Pin(23), miso=Pin(19))
dc=Pin(12,Pin.OUT)
cs=Pin(5,Pin.OUT)
res=Pin(14,Pin.OUT)

disp=ssd1322.SSD1322_SPI(256,64,spi,dc,cs,res)

#disp.fill(0)
disp.line(5,5,60,60,0xff)
disp.text("HELLOWORLD1", 10, 10, col=0xff)

disp.rotate(True)
disp.show()

Any idea? Thanks

@jakiee3y
Copy link
Owner

jakiee3y commented Aug 6, 2021

rotate() has been updated and it should work. (2021-08-06 11:43 UTC)
call show() as soon as possible after calling rotate().

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