User Manual
Print

Micro:bit Program Editor

MIcro:bit Simulator

The Micro:bit simulator allows you to simulate BBC Micro:bit programs within your browser. The similar can emulate sensor data or user interactions. 

  1. Starting/Stopping the simulator
    Pressing this button will stop the simulator, and pressing the same button again will reactivate the simulator. 
  2. Restart the simulator
    By pressing this button, the emulator will run the program again. 
  3. Toggling debug mode
    Pressing this mode will turn on/off debug mode, which allows you to spot errors in the code more easily. 
  4. Mute
    Pressing this button can mute the simulator, pressing the same button again will unmute it. 
  5. Full-screen mode
    Pressing this button will display the simulator in full-screen. If you want to exit full-screen mode, you can click the blank space to return to the coding space.

Reference: https://makecode.microbit.org/device/simulator  

Downloading Hex files

You can follow the steps below to download your code onto your computer.  

  1. Press the “download” button on the lower left corner of your coding space.  
  2. After download has finished, a window will appear as a reminder. If download is complete, you can press “done”. If your code was not downloaded properly, you can click “download again”.  

Tip: If you do not want this window to appear next time, you can click the “Don’t show this again” button.   

Reference: https://makecode.microbit.org/device/usb 

Importing hex files to Una Platform

You can import Hex files to Una Platform from your computer’s storage.  

  1. Find the file you wish to import 
  2. Drag and drop it onto the coding space, and wait for the system to process the file.  

When you are importing it successfully, you will see that the coding space will start to execute the program you have loaded. 

Importing hex files to Micro:bit

You can import Hex files to Micro:bit from your computer’s storage. 

  1. Insert Micro:bit into your computer 
  2. Find the file you wish to import 
  3. Drag and drop it onto the coding space, and wait for the system to process the file.  

When you are importing it successfully, you will see that the Micro:bit will start to execute the program you have loaded. 

Using Extensions blocks

Una platform supports using additional blocks in your code. You can follow the steps below to add extensions blocks to your code.  

  1. Press “Advanced”. 
  2. Scroll down, and press “extensions”. 
  3. Type in the name of the extension on the search bar, and press said extension.  
  4. You can see that the extension has appeared in your coding blocks menu.  

Switching between blocks, JavaScript, and Python

You can switch the language your code is displayed in, supported languages include blocks, JavaScript, and Python. To switch coding languages, you just have to press the buttons on the lower right corner of your coding space: “blocks”, “JavaScript”, and “Python”. By pressing these buttons, you can switch to the respective coding language.  

Frequently common problems

Problem 1: Dragging the Hex file to Una Platform when importing show error page 

When importing Hex files, if you drag the file into somewhere outside the coding space, the importing process will fail, and your browser will show you an error page. You can press the back arrow to return to the previous page, and import the Hex file again by dragging it into the coding space. The red box in the picture below is the correct location for dragging and dropping Hex files. 

Problem 2: Some of the blocks disappear when you paste the sample code that contains the extension blocks 

If the sample code includes blocks that are part of extensions, and you have not installed the corresponding extension blocks. When you paste the sample code, the extension blocks will disappear. You must install extensions before using blocks included in extension packages. You cannot use blocks you have not installed. You have to install the corresponding extensions to copy and paste the sample code into your own coding space. When you encounter this problem, there are two ways to solve it:   

  1. Install the correct extensions, and copy the sample code again 
  2. Import the sample code as a Hex file to Una Platform