Play with micro:bit and Small Basic

This post has been republished via RSS; it originally appeared at: New blog articles in Microsoft Tech Community.

This is a look back at a blog post from Nonki...

Originally written on 08/28/2017.

 

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.

 

makecode.microbit.org_-300x187.png 

 

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).

 

chibibit-300x225 (1).jpg

 

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!

See Also

REMEMBER: these articles are REPUBLISHED. Your best bet to get a reply is to follow the link at the top of the post to the ORIGINAL post! BUT you're more than welcome to start discussions here:

This site uses Akismet to reduce spam. Learn how your comment data is processed.