Compare commits
17 Commits
Author | SHA1 | Date | |
---|---|---|---|
e1e8eab93f | |||
dface9083f | |||
31d4afc897 | |||
8427e89eb6 | |||
277d5a721c | |||
80131f2928 | |||
51bd8d57aa | |||
acd974b964 | |||
04e0529610 | |||
ee3f2e6470 | |||
29a4f3cf69 | |||
5649495a28 | |||
a8a9d7dcf0 | |||
09d7ebaf78 | |||
5c6b4c454b | |||
7e1408fc12 | |||
09dc67717c |
@ -1,6 +1,6 @@
|
||||
<script type="text/javascript">
|
||||
(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
|
||||
for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a,e,d])};b.__SV=1.2;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f)}})(document,window.mixpanel||[]);
|
||||
|
||||
mixpanel.init("762fef19c053a0ea4cec43d2fecae76e", { disable_persistence: true });
|
||||
if (pxtConfig) mixpanel.register({ target: pxtConfig.targetId, version: pxtConfig.targetVersion });
|
||||
</script>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<script type="text/javascript">
|
||||
(function(e,b){if(!b.__SV){var a,f,i,g;window.mixpanel=b;b._i=[];b.init=function(a,e,d){function f(b,h){var a=h.split(".");2==a.length&&(b=b[a[0]],h=a[1]);b[h]=function(){b.push([h].concat(Array.prototype.slice.call(arguments,0)))}}var c=b;"undefined"!==typeof d?c=b[d]=[]:d="mixpanel";c.people=c.people||[];c.toString=function(b){var a="mixpanel";"mixpanel"!==d&&(a+="."+d);b||(a+=" (stub)");return a};c.people.toString=function(){return c.toString(1)+".people (stub)"};i="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
|
||||
for(g=0;g<i.length;g++)f(c,i[g]);b._i.push([a,e,d])};b.__SV=1.2;a=e.createElement("script");a.type="text/javascript";a.async=!0;a.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";f=e.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f)}})(document,window.mixpanel||[]);
|
||||
|
||||
mixpanel.init("762fef19c053a0ea4cec43d2fecae76e", { disable_persistence: true });
|
||||
if (pxtConfig) mixpanel.register({ target: pxtConfig.targetId, version: pxtConfig.targetVersion });
|
||||
</script>
|
||||
|
@ -20,8 +20,8 @@ Use the Accelerometer to control guitar tempo
|
||||
## Duration: 30 - 45 minutes
|
||||
|
||||
*accelerometer controlled tempo*
|
||||
https://youtu.be/h_gPkBaVkoo
|
||||
TODO: add sound to video
|
||||
https://youtu.be/kA0HpqCWsjs
|
||||
|
||||
## Blocks
|
||||
|
||||
```cards
|
||||
|
@ -1,20 +1,11 @@
|
||||
# Raspberry Pi and Raspbian
|
||||
|
||||
It is possible to run the web editor or [command line interface](/cli) from Raspbian on Raspberry Pi 2 or 3.
|
||||
It is possible to run the web editor or [command line interface](/cli) from Raspbian on Raspberry Pi 2 or 3
|
||||
with [Raspbian Jessie with Pixel](https://www.raspberrypi.org/downloads/raspbian/).
|
||||
|
||||
## Web editor
|
||||
|
||||
The web editor requires to install IceWeasel (Firefox) as the built-in browser cannot handle it.
|
||||
|
||||
```
|
||||
sudo apt-get install iceweasel
|
||||
```
|
||||
|
||||
Once installed simply navigate to https://codethemicrobit.com or type
|
||||
|
||||
```
|
||||
firefox https://codethemicrobit.com
|
||||
```
|
||||
Starting with **Raspbian Pixel**, Raspbian comes with Chromium. Simply open [](https://codethemicrobit.com).
|
||||
|
||||
## Command line
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "microbit-bluetooth",
|
||||
"name": "bluetooth",
|
||||
"description": "Bluetooth services",
|
||||
"files": [
|
||||
"README.md",
|
||||
@ -10,7 +10,7 @@
|
||||
],
|
||||
"public": true,
|
||||
"dependencies": {
|
||||
"microbit": "file:../microbit"
|
||||
"core": "file:../core"
|
||||
},
|
||||
"yotta": {
|
||||
"config": {
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "microbit",
|
||||
"name": "core",
|
||||
"description": "The microbit core library",
|
||||
"installedVersion": "tsmdvf",
|
||||
"files": [
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "microbit-devices",
|
||||
"name": "devices",
|
||||
"description": "The BLE specific services",
|
||||
"files": [
|
||||
"README.md",
|
||||
@ -9,7 +9,7 @@
|
||||
],
|
||||
"public": true,
|
||||
"dependencies": {
|
||||
"microbit": "file:../microbit"
|
||||
"core": "file:../core"
|
||||
},
|
||||
"yotta": {
|
||||
"config": {
|
@ -6,7 +6,7 @@
|
||||
],
|
||||
"public": true,
|
||||
"dependencies": {
|
||||
"microbit": "file:../microbit",
|
||||
"microbit-radio": "file:../microbit-radio"
|
||||
"core": "file:../core",
|
||||
"radio": "file:../radio"
|
||||
}
|
||||
}
|
||||
|
@ -8,6 +8,6 @@
|
||||
"public": true,
|
||||
"additionalFilePath": "../../node_modules/pxt-core/libs/lang-test0",
|
||||
"dependencies": {
|
||||
"microbit": "file:../microbit"
|
||||
"core": "file:../core"
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,6 @@
|
||||
],
|
||||
"public": true,
|
||||
"dependencies": {
|
||||
"microbit": "file:../microbit"
|
||||
"core": "file:../core"
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "microbit-radio",
|
||||
"name": "radio",
|
||||
"description": "The radio services",
|
||||
"files": [
|
||||
"README.md",
|
||||
@ -10,7 +10,7 @@
|
||||
],
|
||||
"public": true,
|
||||
"dependencies": {
|
||||
"microbit": "file:../microbit"
|
||||
"core": "file:../core"
|
||||
},
|
||||
"yotta": {
|
||||
"config": {
|
@ -7,7 +7,7 @@
|
||||
],
|
||||
"public": true,
|
||||
"dependencies": {
|
||||
"microbit": "file:../microbit",
|
||||
"microbit-radio": "file:../microbit-radio"
|
||||
"core": "file:../core",
|
||||
"radio": "file:../radio"
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pxt-microbit",
|
||||
"version": "0.4.37",
|
||||
"version": "0.4.43",
|
||||
"description": "micro:bit target for PXT",
|
||||
"keywords": [
|
||||
"JavaScript",
|
||||
@ -29,6 +29,6 @@
|
||||
"typescript": "^1.8.7"
|
||||
},
|
||||
"dependencies": {
|
||||
"pxt-core": "0.4.45"
|
||||
"pxt-core": "0.4.51"
|
||||
}
|
||||
}
|
||||
|
@ -1,34 +1,36 @@
|
||||
{
|
||||
"id": "microbit",
|
||||
"nickname": "microbit",
|
||||
"name": "code the micro:bit",
|
||||
"title": "code the micro:bit - Blocks / Javascript editor",
|
||||
"description": "A Blocks / JavaScript code editor for the micro:bit.",
|
||||
"corepkg": "microbit",
|
||||
"corepkg": "core",
|
||||
"bundleddirs": [
|
||||
"libs/microbit",
|
||||
"libs/microbit-radio",
|
||||
"libs/microbit-devices",
|
||||
"libs/microbit-bluetooth"
|
||||
"libs/core",
|
||||
"libs/radio",
|
||||
"libs/devices",
|
||||
"libs/bluetooth"
|
||||
],
|
||||
"cloud": {
|
||||
"workspace": false,
|
||||
"packages": true,
|
||||
"sharing": true,
|
||||
"publish": true,
|
||||
"sharing": false,
|
||||
"publish": false,
|
||||
"preferredPackages": [
|
||||
"Microsoft/pxt-neopixel",
|
||||
"Microsoft/pxt-sonar",
|
||||
"Microsoft/pxt-max6675",
|
||||
"Microsoft/pxt-i2c-fram"
|
||||
]
|
||||
],
|
||||
"githubPackages": true
|
||||
},
|
||||
"blocksprj": {
|
||||
"id": "blocksprj",
|
||||
"config": {
|
||||
"name": "{0} block",
|
||||
"dependencies": {
|
||||
"microbit": "*",
|
||||
"microbit-radio": "*"
|
||||
"core": "*",
|
||||
"radio": "*"
|
||||
},
|
||||
"description": "",
|
||||
"files": [
|
||||
@ -48,8 +50,8 @@
|
||||
"config": {
|
||||
"name": "{0} bit",
|
||||
"dependencies": {
|
||||
"microbit": "*",
|
||||
"microbit-radio": "*"
|
||||
"core": "*",
|
||||
"radio": "*"
|
||||
},
|
||||
"description": "",
|
||||
"files": [
|
||||
@ -67,7 +69,23 @@
|
||||
"hasHex": true,
|
||||
"deployDrives": "(MICROBIT|MBED)",
|
||||
"driveName": "MICROBIT",
|
||||
"hexMimeType": "application/x-microbit-hex"
|
||||
"hexMimeType": "application/x-microbit-hex",
|
||||
"upgrades": [
|
||||
{
|
||||
"type": "package",
|
||||
"map": {
|
||||
"microbit": "core",
|
||||
"microbit-bluetooth": "bluetooth",
|
||||
"microbit-radio": "radio",
|
||||
"microbit-devices": "devices",
|
||||
"microbit-led": "",
|
||||
"microbit-music": "",
|
||||
"microbit-game": "",
|
||||
"microbit-pins": "",
|
||||
"microbit-serial": ""
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"runtime": {
|
||||
"mathBlocks": true,
|
||||
|
@ -1,7 +1,7 @@
|
||||
/// <reference path="../../node_modules/pxt-core/built/pxtsim.d.ts"/>
|
||||
/// <reference path="../../libs/microbit/dal.d.ts"/>
|
||||
/// <reference path="../../libs/microbit/shims.d.ts"/>
|
||||
/// <reference path="../../libs/microbit/enums.d.ts"/>
|
||||
/// <reference path="../../libs/core/dal.d.ts"/>
|
||||
/// <reference path="../../libs/core/shims.d.ts"/>
|
||||
/// <reference path="../../libs/core/enums.d.ts"/>
|
||||
|
||||
namespace pxsim.visuals {
|
||||
const PIXEL_SPACING = PIN_DIST * 3;
|
||||
|
@ -6,8 +6,8 @@
|
||||
],
|
||||
"public": true,
|
||||
"dependencies": {
|
||||
"microbit": "*",
|
||||
"microbit-radio": "*"
|
||||
"core": "*",
|
||||
"radio": "*"
|
||||
},
|
||||
"installedVersion": "file:."
|
||||
}
|
||||
|
Reference in New Issue
Block a user