SunFounder pisloth
(continued from previous page)
confuse()
time.sleep(1)
sloth.do_action('stand', 1, 90)
time.sleep(2)
print("happy")
happy()
time.sleep(1)
sloth.do_action('stand', 1, 90)
time.sleep(2)
print("fear")
fear()
time.sleep(1)
sloth.do_action('stand', 1, 90)
time.sleep(2)
print("sad")
sad()
time.sleep(1)
sloth.do_action('stand', 1, 90)
time.sleep(2)
print("angry")
angry()
time.sleep(1)
sloth.do_action('stand', 1, 90)
time.sleep(2)
print("fail")
fail()
time.sleep(1)
sloth.do_action('stand', 1, 90)
time.sleep(2)
if __name__ == "__main__":
while True:
main()
How it works?
In this project, actions + sound effects are combined into different emotional actions, and you can also modify them
yourself.
Note: This fail action will make the PiSloth fall, be careful not to let it fall off the table and break it.
You can add different sound effects or music to musics or sounds folder via Filezilla Software.
4.7. Emotional PiSloth 91