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.
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)
})
Maker is open source on GitHub at https://github.com/microsoft/pxt-maker .
- Post a question on the MakeCode Forum
- Chat with other users on the MakeCode Discord