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

autoscroll() bug #3

Open
fsincere opened this issue Jan 31, 2022 · 0 comments
Open

autoscroll() bug #3

fsincere opened this issue Jan 31, 2022 · 0 comments

Comments

@fsincere
Copy link

fsincere commented Jan 31, 2022

I tried Screen.autoscroll() with MicroPython 1.17 on NUCLEO-L476RG board,
and Grove 16x2 LCD RGB backlight v4.0
It does not work.

Here is my fix :

def autoscroll(self, state):
        if state:
            # self.disp_ctrl |= self.LCD_ENTRYSHIFTINCREMENT
            # self.cmd(self.LCD_DISPLAYCONTROL  | self.disp_ctrl)
            self.disp_mode |= self.LCD_ENTRYSHIFTINCREMENT  
            self.cmd(self.LCD_ENTRYMODESET  | self.disp_mode) 

        else:
            # self.disp_ctrl &= ~self.LCD_ENTRYSHIFTINCREMENT
            # self.cmd(self.LCD_DISPLAYCONTROL  | self.disp_ctrl)
            self.disp_mode &= ~self.LCD_ENTRYSHIFTINCREMENT  
            self.cmd(self.LCD_ENTRYMODESET  | self.disp_mode) 
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

1 participant