MakeCode: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
mNo edit summary
Line 20: Line 20:


As of August 2019, several environments can be programmed with makecode:
As of August 2019, several environments can be programmed with makecode:
* [https://minecraft.makecode.com/ Makecode Minecraft], the online [https://www.minecraft.net/ cube-based online worlds.  
* [https://minecraft.makecode.com/ Makecode Minecraft], the online [https://www.minecraft.net/ Minecraft] cube-based online worlds.  
* [https://makecode.microbit.org/ Makecode Microbit], the [https://microbit.org/code/ educational board] from BBC.
* [https://makecode.microbit.org/ Makecode Microbit], the [https://microbit.org/code/ educational board] from BBC.
* [https://makecode.adafruit.com/ Circuit Playground Express], to program the [[Adafruit Circuit Playground Express]]. A short example is below, else see the [[Adafruit MakeCode tutorial]]
* [https://makecode.adafruit.com/ Circuit Playground Express], to program the [[Adafruit Circuit Playground Express]]. A short example is below, else see the [[Adafruit MakeCode tutorial]]
Line 27: Line 27:
* [https://arcade.makecode.com/ Makecode Arcade], to program a [https://arcade.makecode.com/hardware set of gaming consoles from various brands], e.g. [https://www.brainpad.com/ BrainPad Arcade] (quote a "Coding Mini Computer for learning and making, robots, games and electronics"), [https://makecode.adafruit.com/ Adafruit PyBadge] (credit card size board that runs CircuitPython, MakeCode Arcade or Arduino), [https://www.kittenbot.cc/collections/frontpage/products/meowbit-codable-console-for-microsoft-makecode-arcade Meowbit] (a card-sized graphical retro game computer with allows you coding with Makecode arcade and Python).
* [https://arcade.makecode.com/ Makecode Arcade], to program a [https://arcade.makecode.com/hardware set of gaming consoles from various brands], e.g. [https://www.brainpad.com/ BrainPad Arcade] (quote a "Coding Mini Computer for learning and making, robots, games and electronics"), [https://makecode.adafruit.com/ Adafruit PyBadge] (credit card size board that runs CircuitPython, MakeCode Arcade or Arduino), [https://www.kittenbot.cc/collections/frontpage/products/meowbit-codable-console-for-microsoft-makecode-arcade Meowbit] (a card-sized graphical retro game computer with allows you coding with Makecode arcade and Python).
* [https://makecode.chibitronics.com/ Makecode Chibichibi], an [https://chibitronics.com/ environment] for circuit stickers and other tools for paper circuits, which blends circuit building and programming with arts and crafts.
* [https://makecode.chibitronics.com/ Makecode Chibichibi], an [https://chibitronics.com/ environment] for circuit stickers and other tools for paper circuits, which blends circuit building and programming with arts and crafts.
See also:
* [[Adafruit Circuit Playground Express]]
* [[Adafruit GEMMA]]


== Adafruit MakeCode ==
== Adafruit MakeCode ==

Revision as of 14:36, 30 August 2019

E-textile
Module: Adafruit Wearables
draft beginner
2019/08/30 ⚒⚒ 2019/08/28
Objectives
  • Understand how to use this online programming environment
  • Choose the right environment (Playground Express vs. GEMMA)
See also

Objectives

  • Understand how to use this online programming environment
  • Choose the right environment (Playground Express vs. GEMMA)

See also

  • Quality: draft
  • Difficulty: beginner

Introduction

“Microsoft MakeCode brings computer science to life for all students with fun projects, immediate results, and both block and text editors for learners at different levels.” (Hands on computing education, retrieved August 22, 2019).

Makecode looks similar to Snap! and Scratch, i.e. it is a visual programming language. It also allows saving and working with JavaScript code.

As of August 2019, several environments can be programmed with makecode:

See also:

Adafruit MakeCode

Supported boards

So far (Aug 2019), MakeCode works with

All of these boards also work with CircuitPython and Arduino. Code can be directly downloaded into board via USB. It will be compiled into some kind of machine language.

Online editors

  • The online MakeCode editor for the Playground Express is https://makecode.adafruit.com/. The site includes some walk-through tutorials and some examples. The platform includes that familiar palette with programming elements, a workspace for the program, and a simulator to the left.

Circuit Playground Express Example

The following simple example shows that a simple application can be done in short time, even by beginners.

Notice: Make sure to save more complex code and maybe create versions. I did loose the blocks code for an example at some point by playing around with the "explorer" functionality.

Block code

The following code will activate on shaking the board and repeat four times a sound and a blinking (from blue to red/yellow) since one ring is shown one after the other.

AdaFruit MakeCode example for Circuit PlayGround Express

The corresponding JavaScript code is

input.onGesture(Gesture.Shake, function () {
    for (let i = 0; i < 4; i++) {
        music.magicWand.play()
        light.showRing(
        `blue blue blue blue blue blue blue blue blue blue`
        )
        light.showRing(
        `yellow red yellow red yellow yellow red red red yellow`
        )
        pause(500)
    }
    light.clear()
})

Downloading

So far I did not receive the board, so it's not tested. Maybe tomorrow :)

AdaFruit MakeCode download for Circuit PlayGround Express

Links