Table of Contents

showscrollingtext()

Function Definition: showscrollingtext(message = "Hi I am Quarky", speed = 1, color = [0, 0 , 0])

Parameters

NameTypeDescriptionExpected ValuesDefault Value
messagestringThe message which needs to be displayed.String"Hi I am Quarky"
speedintSet the speed level: 1 (Slow), 2 (Medium), and 3 (High)1, 2, or 31
colorlistThe color list with following values R - 0-255, G - 0-255, and B - 0-255[R, G, B][0, 0 , 0]

Description

The function runs the specified text message on the RGB LED of Quarky. You can also set the speed and the color of the text.

Example

The example demonstrates how to display scrolling text to make a name badge in the Python Coding Environment.

Code

sprite = Sprite('Tobi')
quarky=Quarky()

while True:
	quarky.showanimation("blink")
	quarky.showanimation("blink")
	quarky.showscrollingtext("Quarky", 2, [0, 255, 0])
	quarky.showscrollingtext("Robotics", 2, [0, 0, 255])

Output

Read More
All articles loaded
No more articles to load