LI: To Learn how to code the Microbot in the Phyton.
For this example for coding the buttons , the main thing to notice is the "def" which is defining what the on_button_pressed will make to microbit do. Again this has a top and bottom so the content has to go inside it.
The first one shows the Phyton coding for flashing heart. It flashes between a small heart icon and a large heart Icon. The main thing to notice between the Phython coding and the blocks is the the forever loop is the top and bottom of the content in both.
No comments:
Post a Comment