Sampel Project Use Show Number in Microbit

Sampel Project Use Show Number in Microbit

this time we will create a simple project using Microbit, where we will display the numbers 1,2,3,4,5,6,7,8,9,10 with a delay Each number is 100MS. for the results that will be made, you can watch the video below

Steps to Create a Project Using Block Code

  1. please click New Project at https://makecode.microbit.org/
  2. then click Basic -> select Show Number
  3. click and drag Show Number, then drop it in the On Start or Forever
  4. and then click and drag Pause (ms) 100 and drop after Show Number
  5. section The block code can be seen in the image below.
  6. please repeat Show Number and Pause from number 1 to 10.

Steps to Create a Project Using the Python Programming Language

  1. please click on the Python programming language as shown in the image below
  2. after selecting the Python programming language, then type the code line belowplease click on the Python programming language as shown in the image below
basic.show_number(1)
basic.pause(100)
basic.show_number(2)
basic.pause(100)
basic.show_number(3)
basic.pause(100)
basic.show_number(3)
basic.pause(100)
basic.show_number(4)
basic.pause(100)
basic.show_number(5)
basic.pause(100)
basic.show_number(6)
basic.pause(100)
basic.show_number(7)
basic.pause(100)
basic.show_number(8)
basic.pause(100)
basic.show_number(9)
basic.pause(100)
basic.show_number(10)

def on_forever():
    pass
basic.forever(on_forever)

after everything is done, the next step is to run the Microbit and see the results

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *