1. Home
  2. /
  3. Makecode
  4. /
  5. Scroll Text on micro:bit

Scroll Text on micro:bit - Makecode Typing CST Test

Loading…

Scroll Text on micro:bit — Makecode Code

Scrolls a custom message on the micro:bit LED display.

basic.showString("Welcome!")

Makecode Language Guide

Microsoft MakeCode is a block- and text-based coding platform for creating interactive programs, games, and hardware projects using microcontrollers like micro:bit, Circuit Playground Express, and more.

Primary Use Cases

  • ▸Teaching coding and computational thinking
  • ▸Creating microcontroller-based projects
  • ▸Prototyping simple games and simulations
  • ▸Interactive electronics with sensors and LEDs
  • ▸STEM workshops, classrooms, and maker labs

Notable Features

  • ▸Block-based drag-and-drop programming
  • ▸Text editor support for JavaScript and Python
  • ▸Hardware simulation environment
  • ▸Extensive hardware extensions and libraries
  • ▸Cross-platform web-based IDE with offline apps

Origin & Creator

MakeCode was developed by Microsoft around 2016 as an educational platform to teach coding and electronics to students using a low-barrier, interactive environment.

Industrial Note

Primarily used in education, STEM learning, and maker projects; not intended for large-scale commercial software development.

Quick Explain

  • ▸Visual block-based editor with drag-and-drop coding for beginners.
  • ▸Text-based JavaScript or Python mode for advanced users.
  • ▸Supports interactive hardware, LED displays, sensors, and input devices.
  • ▸Real-time simulator to test code without hardware.
  • ▸Used for teaching coding, electronics, and STEM concepts in classrooms and at home.

Core Features

  • ▸Blocks - visual programming elements
  • ▸JavaScript/Python - text coding alternative
  • ▸Simulator - test programs virtually
  • ▸Hardware integration - micro:bit, Circuit Playground Express, LEGO, etc.
  • ▸Extensions - add new sensors, games, or devices

Practical Examples

  • ▸Blinking LED with button input
  • ▸Temperature-sensor logging
  • ▸Simple micro:bit game (rock-paper-scissors)
  • ▸Animated display on LED matrix
  • ▸Robotics control with multiple motors

Comparisons

  • ▸MakeCode vs Scratch: hardware-focused vs general animation/game
  • ▸MakeCode vs Processing.py: block/hardware vs creative coding desktop
  • ▸MakeCode vs Arduino IDE: beginner-friendly vs text-heavy hardware programming
  • ▸MakeCode vs Tinkercad CodeBlocks: more hardware options vs 3D modeling integration
  • ▸MakeCode vs PXT: same Microsoft platform, different UI versions

Strengths

  • ▸Beginner-friendly with block interface
  • ▸Supports transition to text-based coding
  • ▸Immediate visual feedback with simulator
  • ▸Strong integration with hardware and sensors
  • ▸Extensive tutorials and examples for education

Limitations

  • ▸Limited advanced programming features
  • ▸Not suitable for professional software development
  • ▸Simulator may not perfectly match hardware behavior
  • ▸Large projects can become hard to manage
  • ▸Dependent on browser or MakeCode app for editing

Project Structure

  • ▸main.ts or main.py - main code file
  • ▸project.json - project metadata
  • ▸assets/ - images, sounds, or sprites
  • ▸extensions/ - optional libraries for hardware
  • ▸README.md - documentation or notes

Basic Concepts

  • ▸Block - visual code unit representing actions or logic
  • ▸Loop - repeat instructions continuously
  • ▸Event - triggered by input (button, sensor, or time)
  • ▸Variable - stores data for program state
  • ▸Simulator - tests code virtually before deploying

More Makecode Typing Exercises

Hello World in MakeCode (JavaScript view)Display a Heart IconBlink an LEDButton A Pressed MessageCount from 1 to 5Display Random NumberTilt DetectionShow Multiple IconsTemperature Display

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher