Getting started with JavaScript Blocks Editor (PXT) on Micro:Bit
Introduction
JavaScript Blocks Editor (PXT) is a drag and drop editor for JavaScript available on the Micro:Bit. JavaScript Blocks Editor (PXT) is an updated version of the Javascript Blocks environment on the Micro:bit and includes some additional features like peer-to-peer radio. In this tutorial, we’re going to run and initial hello World script on our Micro:bit and also test out the hidden easter egg.What you need
Micro:bit and USB cableHow
To open PXT, go to Microbit.org and click on ‘Let’s Code???and then select Let’s Code from the JavaScript Blocks Editor (PXT) section. (or you can go directly to pxt.microbit.org/) Like other code editors on the MicroBit it comes with an introductory tutorial to help you get started. Click on ‘Getting Started???to view the PXT Tutorial. We’re going to create a simple ‘Hello World!???demo to check that everything is working. Our code blocks in this example can all be found in the ‘Basic???category. First, let’s add a On Start block. Anything within this block with run when the micro:bit is first connected or powered on. Now, let’s also add a Forever block. This code will run until the device is switched off. We can add a Show Icon block like this: Now, save your code and upload it to your Mirco:bit board. You should now see the “Hello, World!???text flash across the LED screen followed by the heart icon. The heart icon will say visible until we switch off the micro:bit or upload our next programme. This article is written by Artefacto.Share this post
About the Author
Admin
How to Send Micro:bit Data to ThingSpeak IoT Platform
January 11, 2018
VC0706 Camera Module DIY Guide
December 18, 2014
nRF24L01 Module Demo for Arduino
May 6, 2011
ELECFREAKS AI Smart Lens Now Compatible with Gigo Building Blocks!
February 21, 2024
ELECFREAKS Wins the Kids Judge Bett 2024 Award at the BETT Show
January 31, 2024
Topics
- Curriculum
- Course
- Micro bit supplier
- Wholesale Suppliers
- Micro bit tutorial
- Micro bit classroom pack
- Mcorbit Environment Monitoring
- Temperature-controlled
- Motor
- Fan
- TPBot car
- TPBot
- Micro:bit car
- AI Lens
- Micor:bit AI Lens
- Micro:bit LEDs
- BBC micro:bit
- Micro:bit Manipulator
- Wukong board
- Cutebot
- Micro:bit Motorcycle
- Nezha breakout
- Micro:bit DIY
- 360° servos
- AI Lens
- Retro Arcade
- Ecode
- PlanetX
- Microbit programming
- Your:bit
- Do your:bit
- IoT:bit
- Octopus
- Rainbow LED Ring
- Joystick:bit
- Wonder Building Kit
- Sensor:bit
- Downie
- Wenjie
- Laser Engraver Tutorial
Tags
Micro:bit
DIY
micro bit course
micro bit curriculum
micro bit supplier
micro:bit supplier
micro bit classroom pack
micro:bit classroom pack
micro bit tutorial
micro:bit tutorial
TPBot
micro:bit car
AI Lens
micro:bit AI Lens
microbit gyroscope
Micro:bit LEDs
BBC micro:bit
Micro:bit Manipulator
Wukong board
Cutebot
micro:bit Motorcycle
nezha breakout
micro:bit music
360° servos
AI Lens
Retro Arcade
ecode
PlanetX
sonar:bit
Microbit programming
your:bit
do your:bit
IoT:bit
Octopus
Rainbow LED Ring
Joystick:bit
Wonder Building Kit
Laser Engraver
Laser Engraving Machine
Wish List
Comments