Compare commits
44 Commits
Author | SHA1 | Date | |
---|---|---|---|
7a74def276 | |||
81b93c13ad | |||
2852684f89 | |||
2798b579a6 | |||
9d23f82238 | |||
ce53d5c386 | |||
5d3471b3b2 | |||
08b9b10ac8 | |||
404d7cc4a2 | |||
7c43739e4b | |||
92d8adfdbd | |||
0f273131f6 | |||
9ae0c48477 | |||
5f538f418e | |||
859b68b6e3 | |||
6576f7bd66 | |||
5a670f3291 | |||
7129487618 | |||
e1797b457a | |||
c82efa452d | |||
493014af01 | |||
fb4a96d81b | |||
bbf115f33c | |||
5d9c2cf590 | |||
b99231f6e2 | |||
2676907129 | |||
6f4c533ebb | |||
85dcaea979 | |||
8560b31657 | |||
b896588f45 | |||
0b4d4facfe | |||
52ad897ee3 | |||
72582f2a60 | |||
2b2048da7d | |||
e85fa990bd | |||
81a61538c3 | |||
cc8751bd09 | |||
03f933a1c8 | |||
10a77d9fef | |||
773f8a8688 | |||
f67743d935 | |||
237a57ee86 | |||
b80edb43fc | |||
6c9b609fe0 |
@ -2,9 +2,9 @@ language: node_js
|
||||
node_js:
|
||||
- "5.7.0"
|
||||
script:
|
||||
- "node node_modules/kindscript/built/kind.js travis"
|
||||
- "(cd libs/lang-test0; node ../../node_modules/kindscript/built/kind.js run)"
|
||||
- "node node_modules/kindscript/built/kind.js uploaddoc"
|
||||
- "node node_modules/pxt-core/built/pxt.js travis"
|
||||
- "(cd libs/lang-test0; node ../../node_modules/pxt-core/built/pxt.js run)"
|
||||
- "node node_modules/pxt-core/built/pxt.js uploaddoc"
|
||||
sudo: false
|
||||
notifications:
|
||||
email:
|
||||
|
2
.vscode/tasks.json
vendored
@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": "0.1.0",
|
||||
// Task runner is jake
|
||||
"command": "kind",
|
||||
"command": "pxt",
|
||||
// Need to be executed in shell / cmd
|
||||
"isShellCommand": true,
|
||||
"showOutput": "always",
|
||||
|
@ -1,4 +1,4 @@
|
||||
/// <reference path="../node_modules/kindscript/built/kind.d.ts"/>
|
||||
/// <reference path="../node_modules/pxt-core/built/pxt.d.ts"/>
|
||||
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
@ -7,7 +7,7 @@ import * as child_process from 'child_process';
|
||||
let writeFileAsync: any = Promise.promisify(fs.writeFile)
|
||||
let execAsync: (cmd: string, options?: { cwd?: string }) => Promise<Buffer> = Promise.promisify(child_process.exec)
|
||||
|
||||
export function deployCoreAsync(res: ts.ks.CompileResult) {
|
||||
export function deployCoreAsync(res: ts.pxt.CompileResult) {
|
||||
return getBitDrivesAsync()
|
||||
.then(drives => {
|
||||
if (drives.length == 0) {
|
||||
@ -40,4 +40,4 @@ function getBitDrivesAsync(): Promise<string[]> {
|
||||
} else {
|
||||
return Promise.resolve([])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
# Lessons
|
||||
|
||||
|
||||
### @short Lessons
|
||||
|
||||
### ~column
|
||||
|
@ -126,15 +126,3 @@ This is useful if you have something connected at the other end. As explained ab
|
||||
let msg = serial.readString()
|
||||
```
|
||||
|
||||
* reads an image
|
||||
|
||||
```
|
||||
img = serial.readImage()
|
||||
```
|
||||
|
||||
* reads the state of the screen from serial
|
||||
|
||||
```
|
||||
serial.readScreen()
|
||||
```
|
||||
|
||||
|
BIN
docs/static/mb/acceleration-0.png
vendored
Before Width: | Height: | Size: 3.1 KiB |
BIN
docs/static/mb/analog-read-pin-0.png
vendored
Before Width: | Height: | Size: 2.7 KiB |
BIN
docs/static/mb/analog-set-period-0.png
vendored
Before Width: | Height: | Size: 7.3 KiB |
BIN
docs/static/mb/blocks/contents-21.png
vendored
Before Width: | Height: | Size: 4.1 KiB |
BIN
docs/static/mb/blocks/contents-22.jpg
vendored
Before Width: | Height: | Size: 11 KiB |
BIN
docs/static/mb/blocks/contents-23.png
vendored
Before Width: | Height: | Size: 4.5 KiB |
BIN
docs/static/mb/blocks/contents-24.png
vendored
Before Width: | Height: | Size: 1.3 KiB |
BIN
docs/static/mb/blocks/contents-25.png
vendored
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 6.7 KiB |
BIN
docs/static/mb/blocks/lessons/blink-6.png
vendored
Before Width: | Height: | Size: 3.4 KiB |
BIN
docs/static/mb/blocks/lessons/blink-7.png
vendored
Before Width: | Height: | Size: 3.3 KiB |
BIN
docs/static/mb/blocks/lessons/blink-8.png
vendored
Before Width: | Height: | Size: 3.2 KiB |
BIN
docs/static/mb/blocks/lessons/digi-yoyo-1.jpg
vendored
Before Width: | Height: | Size: 21 KiB |
BIN
docs/static/mb/blocks/lessons/flashing-heart-5.jpg
vendored
Before Width: | Height: | Size: 12 KiB |
BIN
docs/static/mb/blocks/lessons/flashing-heart-6.jpg
vendored
Before Width: | Height: | Size: 12 KiB |
BIN
docs/static/mb/blocks/lessons/hero-0.png
vendored
Before Width: | Height: | Size: 6.0 KiB |
BIN
docs/static/mb/blocks/lessons/hero-1.png
vendored
Before Width: | Height: | Size: 8.4 KiB |
BIN
docs/static/mb/blocks/lessons/hero-10.jpg
vendored
Before Width: | Height: | Size: 99 KiB |
BIN
docs/static/mb/blocks/lessons/hero-11.jpg
vendored
Before Width: | Height: | Size: 36 KiB |
BIN
docs/static/mb/blocks/lessons/hero-2.png
vendored
Before Width: | Height: | Size: 11 KiB |
BIN
docs/static/mb/blocks/lessons/hero-3.png
vendored
Before Width: | Height: | Size: 13 KiB |
BIN
docs/static/mb/blocks/lessons/hero-4.png
vendored
Before Width: | Height: | Size: 16 KiB |
BIN
docs/static/mb/blocks/lessons/hero-5.png
vendored
Before Width: | Height: | Size: 34 KiB |
BIN
docs/static/mb/blocks/lessons/hero-6.png
vendored
Before Width: | Height: | Size: 44 KiB |
BIN
docs/static/mb/blocks/lessons/hero-7.png
vendored
Before Width: | Height: | Size: 69 KiB |
BIN
docs/static/mb/blocks/lessons/hero-8.jpg
vendored
Before Width: | Height: | Size: 116 KiB |
BIN
docs/static/mb/blocks/lessons/hero-9.jpg
vendored
Before Width: | Height: | Size: 106 KiB |
BIN
docs/static/mb/blocks/lessons/light-beatbox-0.png
vendored
Before Width: | Height: | Size: 2.6 KiB |
BIN
docs/static/mb/blocks/lessons/light-beatbox-1.png
vendored
Before Width: | Height: | Size: 7.5 KiB |
BIN
docs/static/mb/blocks/lessons/light-beatbox-2.png
vendored
Before Width: | Height: | Size: 15 KiB |
BIN
docs/static/mb/blocks/lessons/light-beatbox-3.png
vendored
Before Width: | Height: | Size: 38 KiB |
BIN
docs/static/mb/blocks/lessons/love-meter-0.jpg
vendored
Before Width: | Height: | Size: 10 KiB |
BIN
docs/static/mb/blocks/lessons/love-meter-6.png
vendored
Before Width: | Height: | Size: 13 KiB |
BIN
docs/static/mb/blocks/lessons/love-meter-7.png
vendored
Before Width: | Height: | Size: 26 KiB |
BIN
docs/static/mb/blocks/lessons/lucky-7-3.png
vendored
Before Width: | Height: | Size: 2.8 KiB |
BIN
docs/static/mb/blocks/lessons/lucky-7-4.png
vendored
Before Width: | Height: | Size: 2.9 KiB |
BIN
docs/static/mb/blocks/lessons/lucky-7-5.png
vendored
Before Width: | Height: | Size: 2.9 KiB |
BIN
docs/static/mb/blocks/lessons/pogo-0.jpg
vendored
Before Width: | Height: | Size: 16 KiB |
BIN
docs/static/mb/blocks/lessons/pogo-1.jpg
vendored
Before Width: | Height: | Size: 19 KiB |
BIN
docs/static/mb/blocks/lessons/pogo-2.jpg
vendored
Before Width: | Height: | Size: 43 KiB |
BIN
docs/static/mb/blocks/lessons/pogo-3.jpg
vendored
Before Width: | Height: | Size: 53 KiB |
BIN
docs/static/mb/blocks/lessons/screen-wipe-5.png
vendored
Before Width: | Height: | Size: 17 KiB |
BIN
docs/static/mb/blocks/lessons/screen-wipe-6.png
vendored
Before Width: | Height: | Size: 6.8 KiB |
BIN
docs/static/mb/blocks/lessons/screen-wipe-7.png
vendored
Before Width: | Height: | Size: 10 KiB |
BIN
docs/static/mb/blocks/lessons/smiley-3.png
vendored
Before Width: | Height: | Size: 16 KiB |
BIN
docs/static/mb/blocks/lessons/smiley-5.png
vendored
Before Width: | Height: | Size: 42 KiB |
BIN
docs/static/mb/blocks/lessons/snowflake-fall-1.jpg
vendored
Before Width: | Height: | Size: 25 KiB |
BIN
docs/static/mb/blocks/lessons/snowflake-fall-2.jpg
vendored
Before Width: | Height: | Size: 26 KiB |
BIN
docs/static/mb/blocks/lessons/snowflake-fall-3.jpg
vendored
Before Width: | Height: | Size: 34 KiB |
BIN
docs/static/mb/blocks/lessons/snowflake-fall-4.png
vendored
Before Width: | Height: | Size: 20 KiB |
BIN
docs/static/mb/blocks/lessons/snowflake-fall-5.png
vendored
Before Width: | Height: | Size: 13 KiB |
BIN
docs/static/mb/blocks/lessons/snowflake-fall-6.png
vendored
Before Width: | Height: | Size: 14 KiB |
BIN
docs/static/mb/blocks/lessons/spinner-0.jpg
vendored
Before Width: | Height: | Size: 11 KiB |
BIN
docs/static/mb/blocks/lessons/spinner-1.jpg
vendored
Before Width: | Height: | Size: 32 KiB |
BIN
docs/static/mb/blocks/lessons/spinner-2.jpg
vendored
Before Width: | Height: | Size: 48 KiB |
BIN
docs/static/mb/blocks/lessons/spinner-3.jpg
vendored
Before Width: | Height: | Size: 61 KiB |
BIN
docs/static/mb/blocks/lessons/spinner-4.jpg
vendored
Before Width: | Height: | Size: 61 KiB |
BIN
docs/static/mb/blocks/lessons/spinner-5.jpg
vendored
Before Width: | Height: | Size: 67 KiB |
BIN
docs/static/mb/blocks/lessons/strobe-light-3.jpg
vendored
Before Width: | Height: | Size: 28 KiB |
BIN
docs/static/mb/button-is-pressed-0.png
vendored
Before Width: | Height: | Size: 3.0 KiB |
BIN
docs/static/mb/change-tempo-0.jpg
vendored
Before Width: | Height: | Size: 12 KiB |
BIN
docs/static/mb/change-tempo-by-0.jpg
vendored
Before Width: | Height: | Size: 13 KiB |
BIN
docs/static/mb/compass-heading-0.png
vendored
Before Width: | Height: | Size: 2.8 KiB |
BIN
docs/static/mb/create-image-0.png
vendored
Before Width: | Height: | Size: 6.3 KiB |
BIN
docs/static/mb/digital-read-pin-0.png
vendored
Before Width: | Height: | Size: 3.0 KiB |
BIN
docs/static/mb/digital-write-pin-0.png
vendored
Before Width: | Height: | Size: 4.3 KiB |
BIN
docs/static/mb/game-library/touching-edge-0.png
vendored
Before Width: | Height: | Size: 3.0 KiB |
BIN
docs/static/mb/lessons/answering-machine-5.png
vendored
Before Width: | Height: | Size: 6.1 KiB |
BIN
docs/static/mb/magnetic-force-0.png
vendored
Before Width: | Height: | Size: 4.1 KiB |
BIN
docs/static/mb/map-0.png
vendored
Before Width: | Height: | Size: 11 KiB |
BIN
docs/static/mb/on-logo-down-0.jpg
vendored
Before Width: | Height: | Size: 11 KiB |
BIN
docs/static/mb/on-logo-up-0.jpg
vendored
Before Width: | Height: | Size: 11 KiB |
BIN
docs/static/mb/on-notified-0.png
vendored
Before Width: | Height: | Size: 7.2 KiB |
BIN
docs/static/mb/on-screen-down-0.jpg
vendored
Before Width: | Height: | Size: 11 KiB |
BIN
docs/static/mb/on-screen-up-0.jpg
vendored
Before Width: | Height: | Size: 11 KiB |
BIN
docs/static/mb/play-tone-0.jpg
vendored
Before Width: | Height: | Size: 15 KiB |
BIN
docs/static/mb/rest-0.jpg
vendored
Before Width: | Height: | Size: 11 KiB |
BIN
docs/static/mb/ring-tone-0.jpg
vendored
Before Width: | Height: | Size: 11 KiB |
BIN
docs/static/mb/rotation-0.png
vendored
Before Width: | Height: | Size: 3.5 KiB |
BIN
docs/static/mb/running-time-0.png
vendored
Before Width: | Height: | Size: 2.4 KiB |
BIN
docs/static/mb/servo-set-pulse-0.png
vendored
Before Width: | Height: | Size: 7.7 KiB |
BIN
docs/static/mb/servo-write-pin-0.png
vendored
Before Width: | Height: | Size: 6.6 KiB |
BIN
docs/static/mb/temperature-0.png
vendored
Before Width: | Height: | Size: 5.2 KiB |
BIN
docs/static/mb/tempo-0.jpg
vendored
Before Width: | Height: | Size: 9.6 KiB |
94
docs/static/microbitheart.svg
vendored
Before Width: | Height: | Size: 26 KiB |
100
kindtarget.json
@ -2,7 +2,7 @@ namespace i2c_fram {
|
||||
const devaddr = 0x50;
|
||||
const memend = 0x7fff;
|
||||
|
||||
//% shim=ksrt::panic
|
||||
//% shim=pxtrt::panic
|
||||
function panic(code: number) { }
|
||||
|
||||
function die() { panic(142) }
|
||||
|
@ -3,7 +3,7 @@
|
||||
// Do not use anything besides basic.pause, control.inBackground, console.log
|
||||
//
|
||||
|
||||
//% shim=ksrt::panic
|
||||
//% shim=pxtrt::panic
|
||||
function panic(code2: number): void { }
|
||||
|
||||
function msg(s: string): void {
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "kindscript.h"
|
||||
#include "pxt.h"
|
||||
#include "MESEvents.h"
|
||||
|
||||
using namespace kindscript;
|
||||
using namespace pxt;
|
||||
|
||||
enum class MesCameraEvent {
|
||||
//% block="take photo"
|
||||
|