MicroPython module for M5Stack to render avatar face.
Download m5stack_avatar.py and put it to the flash directory.
from m5stack_avatar import M5StackAvatar
avatar = M5StackAvatar()
avatar.start()
avatar.speak('Hello from M5StackAvatarPython!!')
avatar.exclamation_on()
avatar.exclamation_off()
avatar.pale_on()
avatar.pale_off()
from m5stack_avatar import M5StackAvatar
import time
avatar = M5StackAvatar()
avatar.start()
while True:
avatar.speak('Hello from M5StackAvatarPython!!')
time.sleep(10)
avatar.exclamation_on()
time.sleep(5)
avatar.exclamation_off()
time.sleep(5)
avatar.pale_on()
time.sleep(5)
avatar.pale_off()
time.sleep(5)
Copyright (c) 2018 Akanuma Hiroaki
Released under the MIT license
https://opensource.org/licenses/mit-license.php