Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
BBC micro:bit is a small board computer for kids. Today I'd like to introduce two programs that communicate between a micro:bit and a PC.
The micro:bit side program is thermometer which is programed with JavaScript Blocks Editor. This program shows temperature at A button clicked and sends temperature to serial port when the temperature changed.
The PC side program is Thermometer.sb which receives temperature from serial port and shows it graphically. The picture below shows Device Manager, Thermometer.sb and chibi:bit (a micro:bit compatible board).
Before running Thermometer.sb, please check the port number in Ports (COM & LPT) such like COM3 with Device Manager. And modify line 88 of Thermometer.sb. Then push reset button and push A button of micro:bit.
Have fun with Small Basic and micro:bit!
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in