* bringing back show ports * added firmware links in docs * updated color rendering * better rendering of touch/ultra/ir * better data per sensor
1.4 KiB
About
Welcome to the Microsoft MakeCode editor for the @boardname@!
Programming: Blocks or JavaScript
You can program the @boardname@ using Blocks or JavaScript in your web browser:
brick.buttonEnter.onEvent(ButtonEvent.Bumped, () => {
motors.largeA.run(50)
})
brick.buttonEnter.onEvent(ButtonEvent.Bumped, () => {
motors.largeA.run(50)
})
The editor work in most modern browsers, work offline once loaded and do not require any installation.
Compile and Flash: Your Program!
When you have your code ready, you connect your @boardname@ to a computer via a USB cable so it appears as a mounted drive (named EV3).
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 EV3 drive, which flashes the device with the new program.
~ hint
Not seeing the EV3 drive? Make sure to upgrade your firmware at https://ev3manager.education.lego.com/.
~
Simulator: Test Your Code
You can run your code using the micro:bit simulator, all within the confines of a web browser. The simulator has support for the LED screen, buttons, as well as compass, accelerometer, and digital I/O pins.
brick.buttonEnter.onEvent(ButtonEvent.Bumped, () => {
motors.largeA.run(50)
})