Initial commit, based on pxt-adafruit
This commit is contained in:
11
docs/SUMMARY.md
Normal file
11
docs/SUMMARY.md
Normal file
@ -0,0 +1,11 @@
|
||||
# @extends
|
||||
|
||||
## Reference #reference
|
||||
|
||||
* [Reference](/reference)
|
||||
* [input](/reference/input)
|
||||
* [light](/reference/light)
|
||||
* [music](/reference/music)
|
||||
* [pins](/reference/pins)
|
||||
* [control](/reference/control)
|
||||
* [serial](/reference/serial)
|
43
docs/about.md
Normal file
43
docs/about.md
Normal file
@ -0,0 +1,43 @@
|
||||
# About
|
||||
|
||||
Welcome to the **Microsoft MakeCode** editor for the **@boardname@**!
|
||||
|
||||
## Programming: [Blocks](/blocks) or [JavaScript](/javascript)
|
||||
|
||||
You can program the @boardname@ using [Blocks](/blocks) or [JavaScript](/javascript) in your web browser:
|
||||
|
||||
```block
|
||||
input.buttonA.onEvent(ButtonEvent.Click, () => {
|
||||
light.showRing(`blue blue blue blue blue blue blue blue blue blue`)
|
||||
})
|
||||
```
|
||||
```typescript
|
||||
input.buttonA.onEvent(ButtonEvent.Click, () => {
|
||||
light.showRing(`blue blue blue blue blue blue blue blue blue blue`)
|
||||
})
|
||||
```
|
||||
|
||||
The editor work in [most modern browsers](/browsers), work [offline](/offline) once loaded and do not require any installation.
|
||||
|
||||
## [Compile and Flash: Your Program!](/device/usb)
|
||||
|
||||
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 **CPLAYBOOT**).
|
||||
|
||||
Compilation to machine code from [Blocks](/blocks) or [JavaScript](/javascript) happens in the browser. You save the binary
|
||||
program to a **.uf2** file, which you then copy to the **CPLAYBOOT** drive, which flashes the device with the new program.
|
||||
|
||||
## 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.
|
||||
|
||||
```sim
|
||||
loops.forever(() => {
|
||||
light.pixels.showAnimation(light.animation(LightAnimation.Rainbow), 1000)
|
||||
})
|
||||
```
|
||||
|
||||
```package
|
||||
light
|
||||
```
|
3
docs/beta-ref.json
Normal file
3
docs/beta-ref.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"appref": "v"
|
||||
}
|
8
docs/blocks/loops.md
Normal file
8
docs/blocks/loops.md
Normal file
@ -0,0 +1,8 @@
|
||||
# @extends
|
||||
|
||||
### #specific
|
||||
|
||||
```cards
|
||||
loops.forever(() => {});
|
||||
loops.pause(0)
|
||||
```
|
14
docs/docs.md
Normal file
14
docs/docs.md
Normal file
@ -0,0 +1,14 @@
|
||||
# Documentation
|
||||
|
||||
### @description Links to the documentation, reference and projects.
|
||||
|
||||
Welcome to the documentation of the Microsoft MakeCode editor
|
||||
for the @boardname@.
|
||||
|
||||
## Documentation
|
||||
|
||||
* [About](/about)
|
||||
* [Examples](/examples)
|
||||
* [Blocks](/blocks)
|
||||
* [JavaScript](/javascript)
|
||||
* [Reference](/reference)
|
8
docs/examples.md
Normal file
8
docs/examples.md
Normal file
@ -0,0 +1,8 @@
|
||||
# Examples
|
||||
|
||||
Here are some fun programs for your @boardname@!
|
||||
|
||||
## Fun stuff
|
||||
|
||||
|
||||
Coming soon.
|
3
docs/index-ref.json
Normal file
3
docs/index-ref.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"appref": "v"
|
||||
}
|
9
docs/projects.md
Normal file
9
docs/projects.md
Normal file
@ -0,0 +1,9 @@
|
||||
# Projects
|
||||
|
||||
Here are some cool projects that you can build with your @boardname@!
|
||||
|
||||
## Basic
|
||||
|
||||
Basic projects to build with your @boardname@.
|
||||
|
||||
Coming soon.
|
19
docs/reference.md
Normal file
19
docs/reference.md
Normal file
@ -0,0 +1,19 @@
|
||||
# Reference
|
||||
|
||||
```namespaces
|
||||
input.onGesture(Gesture.Shake, () => {})
|
||||
light.showRing('red red red red red red red red red red')
|
||||
music.playTone(0, 0)
|
||||
pins.pulseDuration()
|
||||
control.runInBackground(() => {})
|
||||
serial.writeLine("");
|
||||
```
|
||||
|
||||
## See Also
|
||||
|
||||
[blocks](/blocks), [JavaScript](/javascript), [input](/reference/input), [light](/reference/light), [music](/reference/music),
|
||||
[control](/reference/control), [pins](/reference/pins), [serial](/reference/serial)
|
||||
|
||||
```package
|
||||
circuit-playground
|
||||
```
|
BIN
docs/static/Microsoft-logo_rgb_c-gray-square.png
vendored
Normal file
BIN
docs/static/Microsoft-logo_rgb_c-gray-square.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
docs/static/Microsoft-logo_rgb_c-gray.png
vendored
Normal file
BIN
docs/static/Microsoft-logo_rgb_c-gray.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
BIN
docs/static/Microsoft-logo_rgb_c-white.png
vendored
Normal file
BIN
docs/static/Microsoft-logo_rgb_c-white.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Reference in New Issue
Block a user