Can the display.scroll () function be slowed down? [SOLVED]

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
csanyipal
Posts: 6
Joined: Sat May 11, 2019 10:43 am
Location: Serbia
Contact:

Can the display.scroll () function be slowed down? [SOLVED]

Post by csanyipal » Sun May 12, 2019 4:48 am

Hello,

can the display.scroll () function be slowed down?

In some cases it is very fast so one can't read say a decimal number scrolled on the 5x5 LED display on a micro:bit out there.
Last edited by csanyipal on Sun May 12, 2019 8:19 am, edited 1 time in total.
Best, Pal

lujo
Posts: 24
Joined: Sat May 11, 2019 2:30 pm

Re: Can the display.scroll () function be slowed down?

Post by lujo » Sun May 12, 2019 7:07 am

Check out the delay parameter for the scroll function. Higher is slower.


from microbit import *

display.scroll("Long string", delay=500, wait=True, loop=False, monospace=False)

csanyipal
Posts: 6
Joined: Sat May 11, 2019 10:43 am
Location: Serbia
Contact:

Re: Can the display.scroll () function be slowed down?

Post by csanyipal » Sun May 12, 2019 8:19 am

Thank you very much for pointing me into the right direction.
I learn now how the microbit.display.scroll(string, delay=150, *, wait=True, loop=False, monospace=False) module works.
I am using this code now:

Code: Select all

display.scroll(str(speed), delay=500, wait=True, monospace=True)
Best, Pal

Post Reply