The function sets the RGB LED display matrix to display the animation specified: “happy”, “nerdy”, “thinking”, “angry”, “contempt”, “blink”, “fear”, “surprise”, “wink”, “wave”, and “crying”.
The example demonstrates the various animation of the Quarky LED display in the Python Coding Environment.
Code
sprite = Sprite('Tobi')
quarky = Quarky()
import time
quarky.showanimation('happy')
quarky.showanimation('happy')
quarky.showanimation('nerdy')
quarky.showanimation('nerdy')
quarky.showanimation('thinking')
quarky.showanimation('thinking')
quarky.showanimation('angry')
quarky.showanimation('angry')
quarky.showanimation('contempt')
quarky.showanimation('contempt')
quarky.showanimation('blink')
quarky.showanimation('blink')
quarky.showanimation('fear')
quarky.showanimation('fear')
quarky.showanimation('surprise')
quarky.showanimation('surprise')
quarky.showanimation('wink')
quarky.showanimation('wink')
quarky.showanimation('wave')
quarky.showanimation('wave')
quarky.showanimation('crying')
quarky.showanimation('crying')
Output
Read More