rm-hull / luma.led_matrix

Python module to drive LED Matrices & 7-segment displays (MAX7219) and RGB NeoPixels (WS2812 / APA102)
https://luma-led-matrix.readthedocs.io
MIT License
525 stars 157 forks source link

Scrolling speed #21

Closed marksev1 closed 8 years ago

marksev1 commented 8 years ago

Is it possible to modify the scrolling speed of the text displayed on these lcds?

rm-hull commented 8 years ago

If you are using the show_message method (see https://github.com/rm-hull/max7219/blob/master/max7219/led.py#L317) then you can alter the text scrolling speed by setting the delay named parameter as follows:

device.show_message("Slow scroll", delay=0.5)

device.show_message("Fast scroll", delay=0.01)

If that parameter is omitted, then the scroll delay is 0.05 seconds

marksev1 commented 8 years ago

Pretty cool, so I just add the delay parameter. Thanks for the tip! I thought it was there but needed an confirmation.