Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.71 KB

File metadata and controls

60 lines (42 loc) · 1.71 KB

About

The Maker Microsoft MakeCode editor allows to program various Cortex-based microcontrollers.

Programming: Blocks or JavaScript

You can program the @boardname@ using Blocks or JavaScript in your web browser.

forever(function() {
    pins.LED.digitalWrite(true)
    pause(500)
    pins.LED.digitalWrite(false)
    pause(500)    
})
forever(function() {
    pins.LED.digitalWrite(true)
    pause(500)
    pins.LED.digitalWrite(false)
    pause(500)    
})

The editor work in most modern browsers, work offline once loaded and do not require any installation.

When you have your code ready, you connect your @boardname@ to a computer via a USB cable then press the reset button so it appears as a mounted drive (named @boardname@).

Compilation to machine code from Blocks or JavaScript happens in the browser. You save the binary program to a .uf2 file, which you then copy to the @boardname@ drive, which flashes the device with the new program.

Simulator: Test Your Code

You can run your code using the Metro Express simulator, all within the confines of a web browser.

forever(function() {
    pins.LED.digitalWrite(true)
    pause(500)
    pins.LED.digitalWrite(false)
    pause(500)    
})

Open Source

Maker is open source on GitHub at https://github.com/microsoft/pxt-maker .

Forum and chat