Friday 2 July 2021

Coding In Python

LI: to

This week we learnt to create a code on our kittenbots to show different faces. Unfortuantely mblock wasn't working so we did our code on python. Python is differnt from mbock as it uses text such as brackets, hashtags, many more. The code works simply; once on of 2 buttons are pressed (a,b) the code will signal the LED's to show a certain icon (sad,happy face), but if both buttons are pressed (a+b) it will show a silly face. I enjoyed this task as I got to work on a different platform than mbot.




No comments:

Post a Comment