Microbit Convert Character To Code
Microbit Convert Character To Code
Ali Jafri
micro:bit, a small computer
USB interface
• Radio
LED array
• Compass
• Accelerometer button A button B
• Detects movement
• Speaker (external)
pins
micro:bit, a small computer (contd.)
Radio antenna Reset Power connection
Processor
Compass
Accelerometer
Programming a micro:bit (contd.)
• In a browser window navigate to https://makecode.microbit.org
• Click on “New Project”
• You will see the programming environment
Simulator Coding block categories Coding area
Project name
Programming the micro:bit (contd.)
• Write the code in the coding area
• Test functionality in the simulator
• Download the program onto your PC
• Downloaded as hex file
• Connect micro:bit to PC via USB
• Will see micro:bit drive appear in windows explorer
• Copy the hex file into the micro:bit drive
• Press the reset button in the back
• Micro:bit will start executing your program
Coding Blocks: On Start
• Executes once at the start
• Or when ever you press the reset button
• Useful to set initial value of variables