Compare commits

..

6 Commits

Author SHA1 Message Date
2825d09eae 0.5.72 2016-11-10 10:11:16 -08:00
15d4a594ae adding hover style on categories 2016-11-10 10:10:03 -08:00
a0b426bdf0 disable simulator crash, disable parts 2016-11-10 10:06:38 -08:00
580f1bf24e 0.5.71 2016-11-10 09:35:40 -08:00
29cc6eaded Bump pxt-core to 0.5.64 2016-11-10 09:35:36 -08:00
6671d1864c updated dal.d.ts 2016-11-10 09:13:25 -08:00
8 changed files with 86 additions and 73 deletions

1
libs/core/dal.d.ts vendored
View File

@ -431,7 +431,6 @@ declare const enum DAL {
MICROBIT_ACCELEROMETER_FREEFALL_TOLERANCE = 400, MICROBIT_ACCELEROMETER_FREEFALL_TOLERANCE = 400,
MICROBIT_ACCELEROMETER_SHAKE_TOLERANCE = 400, MICROBIT_ACCELEROMETER_SHAKE_TOLERANCE = 400,
MICROBIT_ACCELEROMETER_2G_TOLERANCE = 2048, MICROBIT_ACCELEROMETER_2G_TOLERANCE = 2048,
MICROBIT_ACCELEROMETER_3G_TOLERANCE = 3072,
MICROBIT_ACCELEROMETER_6G_TOLERANCE = 6144, MICROBIT_ACCELEROMETER_6G_TOLERANCE = 6144,
MICROBIT_ACCELEROMETER_8G_TOLERANCE = 8192, MICROBIT_ACCELEROMETER_8G_TOLERANCE = 8192,
MICROBIT_ACCELEROMETER_GESTURE_DAMPING = 5, MICROBIT_ACCELEROMETER_GESTURE_DAMPING = 5,

44
libs/core/enums.d.ts vendored
View File

@ -266,33 +266,37 @@ declare namespace motors {
P0 = 7, // MICROBIT_ID_IO_P0 P0 = 7, // MICROBIT_ID_IO_P0
P1 = 8, // MICROBIT_ID_IO_P1 P1 = 8, // MICROBIT_ID_IO_P1
P2 = 9, // MICROBIT_ID_IO_P2 P2 = 9, // MICROBIT_ID_IO_P2
P3 = 40, // CALLIOPE_ID_IO_P22 P3 = 10, // MICROBIT_ID_IO_P3
C4 = 10, // MICROBIT_ID_IO_P3 P4 = 11, // MICROBIT_ID_IO_P4
C5 = 11, // MICROBIT_ID_IO_P4 P5 = 12, // MICROBIT_ID_IO_P5
C6 = 17, // MICROBIT_ID_IO_P10 P6 = 13, // MICROBIT_ID_IO_P6
C7 = 34, // CALLIOPE_ID_IO_P7 P7 = 14, // MICROBIT_ID_IO_P7
C8 = 35, // CALLIOPE_ID_IO_P8 //P8 = MICROBIT_ID_IO_P8,
C9 = 36, // CALLIOPE_ID_IO_P9 P9 = 16, // MICROBIT_ID_IO_P9
C10 = 16, // MICROBIT_ID_IO_P9 P10 = 17, // MICROBIT_ID_IO_P10
C11 = 14, // MICROBIT_ID_IO_P7 P11 = 18, // MICROBIT_ID_IO_P11
C12 = 13, // MICROBIT_ID_IO_P6 //P12 = MICROBIT_ID_IO_P12,
C13 = 37, // CALLIOPE_ID_IO_P13 //P13 = MICROBIT_ID_IO_P13,
C14 = 38, // CALLIOPE_ID_IO_P14 //P14 = MICROBIT_ID_IO_P14,
C15 = 39, // CALLIOPE_ID_IO_P15 //P15 = MICROBIT_ID_IO_P15,
//P16 = MICROBIT_ID_IO_P16, //P16 = MICROBIT_ID_IO_P16,
C19 = 24, // MICROBIT_ID_IO_P19 P19 = 24, // MICROBIT_ID_IO_P19
C20 = 25, // MICROBIT_ID_IO_P20 P20 = 25, // MICROBIT_ID_IO_P20
P28 = 41, // CALLIOPE_ID_IO_P28
P29 = 42, // CALLIOPE_ID_IO_P29
P30 = 43, // CALLIOPE_ID_IO_P30
} }
declare enum AnalogPin { declare enum AnalogPin {
//P0 = MICROBIT_ID_IO_P0, -- does not work analogue P0 = 7, // MICROBIT_ID_IO_P0
P1 = 8, // MICROBIT_ID_IO_P1 P1 = 8, // MICROBIT_ID_IO_P1
P2 = 9, // MICROBIT_ID_IO_P2 P2 = 9, // MICROBIT_ID_IO_P2
//P3 = CALLIOPE_ID_IO_P22, -- does not work analogue P3 = 10, // MICROBIT_ID_IO_P3
C4 = 10, // MICROBIT_ID_IO_P3 P4 = 11, // MICROBIT_ID_IO_P4
C5 = 11, // MICROBIT_ID_IO_P4 P10 = 17, // MICROBIT_ID_IO_P10
C6 = 17, // MICROBIT_ID_IO_P10 P29 = 42, // CALLIOPE_ID_IO_P29
P30 = 43, // CALLIOPE_ID_IO_P30
} }

View File

@ -1,35 +1,39 @@
#include "ksbit.h" #include "ksbit.h"
enum class DigitalPin { enum class DigitalPin {
P0 = MICROBIT_ID_IO_P0, // edge connector 0 P0 = MICROBIT_ID_IO_P0,
P1 = MICROBIT_ID_IO_P1, // edge connector 1 P1 = MICROBIT_ID_IO_P1,
P2 = MICROBIT_ID_IO_P2, // edge connector 2 P2 = MICROBIT_ID_IO_P2,
P3 = CALLIOPE_ID_IO_P22, // edge connector 3 P3 = MICROBIT_ID_IO_P3,
C4 = MICROBIT_ID_IO_P3, // LED matrix C1 P4 = MICROBIT_ID_IO_P4,
C5 = MICROBIT_ID_IO_P4, // LED matrix C2 P5 = MICROBIT_ID_IO_P5,
C6 = MICROBIT_ID_IO_P10, // LED matrix C3 P6 = MICROBIT_ID_IO_P6,
C7 = CALLIOPE_ID_IO_P7, // LED matrix C4 P7 = MICROBIT_ID_IO_P7,
C8 = CALLIOPE_ID_IO_P8, // LED matrix C5 //P8 = MICROBIT_ID_IO_P8,
C9 = CALLIOPE_ID_IO_P9, // LED matrix C6 P9 = MICROBIT_ID_IO_P9,
C10 = MICROBIT_ID_IO_P9, // LED matrix C7 P10 = MICROBIT_ID_IO_P10,
C11 = MICROBIT_ID_IO_P7, // LED matrix C8 P11 = MICROBIT_ID_IO_P11,
C12 = MICROBIT_ID_IO_P6, // LED matrix C9 //P12 = MICROBIT_ID_IO_P12,
C13 = CALLIOPE_ID_IO_P13, // LED matrix R1 //P13 = MICROBIT_ID_IO_P13,
C14 = CALLIOPE_ID_IO_P14, // LED matrix R2 //P14 = MICROBIT_ID_IO_P14,
C15 = CALLIOPE_ID_IO_P15, // LED matrix R3 //P15 = MICROBIT_ID_IO_P15,
//P16 = MICROBIT_ID_IO_P16, //P16 = MICROBIT_ID_IO_P16,
C19 = MICROBIT_ID_IO_P19, // SCL P19 = MICROBIT_ID_IO_P19,
C20 = MICROBIT_ID_IO_P20 // SDA P20 = MICROBIT_ID_IO_P20,
P28 = CALLIOPE_ID_IO_P28,
P29 = CALLIOPE_ID_IO_P29,
P30 = CALLIOPE_ID_IO_P30
}; };
enum class AnalogPin { enum class AnalogPin {
//P0 = MICROBIT_ID_IO_P0, -- does not work analogue P0 = MICROBIT_ID_IO_P0,
P1 = MICROBIT_ID_IO_P1, // edge connector 1 P1 = MICROBIT_ID_IO_P1,
P2 = MICROBIT_ID_IO_P2, // edge connector 2 P2 = MICROBIT_ID_IO_P2,
//P3 = CALLIOPE_ID_IO_P22, -- does not work analogue P3 = MICROBIT_ID_IO_P3,
C4 = MICROBIT_ID_IO_P3, P4 = MICROBIT_ID_IO_P4,
C5 = MICROBIT_ID_IO_P4, P10 = MICROBIT_ID_IO_P10,
C6 = MICROBIT_ID_IO_P10, P29 = CALLIOPE_ID_IO_P29,
P30 = CALLIOPE_ID_IO_P30
}; };
enum class PulseValue { enum class PulseValue {

View File

@ -185,7 +185,7 @@
"pinDistance": 65, "pinDistance": 65,
"pinLocations": [ "pinLocations": [
{"x": 89, "y": 48}, {"x": 89, "y": 48},
{"x": 395, "y": 48} ] {"x": 393, "y": 48} ]
}, },
"pinDefinitions": [ "pinDefinitions": [
{ "target": "M_OUT1", "style": "croc", "orientation": "-Z"}, { "target": "M_OUT1", "style": "croc", "orientation": "-Z"},

View File

@ -1,6 +1,6 @@
{ {
"name": "pxt-calliope", "name": "pxt-calliope",
"version": "0.5.70", "version": "0.5.72",
"description": "calliope target for PXT", "description": "calliope target for PXT",
"keywords": [ "keywords": [
"JavaScript", "JavaScript",
@ -30,7 +30,7 @@
"typescript": "^1.8.7" "typescript": "^1.8.7"
}, },
"dependencies": { "dependencies": {
"pxt-core": "0.5.62", "pxt-core": "0.5.64",
"less": "^2.6.0", "less": "^2.6.0",
"semantic-ui-less": "^2.2.4" "semantic-ui-less": "^2.2.4"
} }

View File

@ -60,7 +60,7 @@
"autoRun": true, "autoRun": true,
"streams": true, "streams": true,
"aspectRatio": 1.13, "aspectRatio": 1.13,
"parts": true, "parts": false,
"partsAspectRatio": 0.69, "partsAspectRatio": 0.69,
"boardDefinition": { "boardDefinition": {
"visual": "calliope", "visual": "calliope",
@ -99,21 +99,21 @@
"P1": "EDGE_P1", "P1": "EDGE_P1",
"P2": "EDGE_P2", "P2": "EDGE_P2",
"P3": "EDGE_P3", "P3": "EDGE_P3",
"C4": "C_P4", "P4": "C_P4",
"C5": "C_P5", "P5": "C_P5",
"C6": "C_P6", "P6": "C_P6",
"C7": "C_P7", "P7": "C_P7",
"C8": "C_P8", "P8": "C_P8",
"C9": "C_P9", "P9": "C_P9",
"C10": "C_P10", "P10": "C_P10",
"C11": "C_P11", "P11": "C_P11",
"C12": "C_P12", "P12": "C_P12",
"C13": "C_P13", "P13": "C_P13",
"C14": "C_P14", "P14": "C_P14",
"C15": "C_P15", "P15": "C_P15",
"C16": "C_P16", "P16": "C_P16",
"C19": "C_P19", "P19": "C_P19",
"C20": "C_P20", "P20": "C_P20",
"EXT_PWR":"EXT_PWR", "EXT_PWR":"EXT_PWR",
"SPKR":"EXT_PWR", "SPKR":"EXT_PWR",
"BTN_A": "BTN_A", "BTN_A": "BTN_A",
@ -127,15 +127,15 @@
"SCK": "P13" "SCK": "P13"
}, },
"i2cPins": { "i2cPins": {
"SDA": "C20", "SDA": "P20",
"SCL": "C19" "SCL": "P19"
}, },
"analogInPins": [ "analogInPins": [
"P0",
"P1", "P1",
"P2", "P2",
"C4", "P3",
"C5", "P10"
"C6"
], ],
"groundPins": [ "groundPins": [
"EDGE_GND" "EDGE_GND"
@ -169,7 +169,7 @@
"yottaTarget": "bbc-microbit-classic-gcc", "yottaTarget": "bbc-microbit-classic-gcc",
"yottaCorePackage": "pxt-calliope-core", "yottaCorePackage": "pxt-calliope-core",
"githubCorePackage": "microsoft/pxt-calliope-core", "githubCorePackage": "microsoft/pxt-calliope-core",
"gittag": "v0.5.14", "gittag": "v0.5.13",
"serviceId": "calliope" "serviceId": "calliope"
}, },
"serial": { "serial": {

View File

@ -199,8 +199,9 @@ namespace pxsim {
if (force < sq(DAL.MICROBIT_ACCELEROMETER_FREEFALL_TOLERANCE)) if (force < sq(DAL.MICROBIT_ACCELEROMETER_FREEFALL_TOLERANCE))
return DAL.MICROBIT_ACCELEROMETER_EVT_FREEFALL; return DAL.MICROBIT_ACCELEROMETER_EVT_FREEFALL;
if (force > sq(DAL.MICROBIT_ACCELEROMETER_3G_TOLERANCE)) // TODO: fix this
return DAL.MICROBIT_ACCELEROMETER_EVT_3G; //if (force > sq(DAL.MICROBIT_ACCELEROMETER_3G_TOLERANCE))
// return DAL.MICROBIT_ACCELEROMETER_EVT_3G;
if (force > sq(DAL.MICROBIT_ACCELEROMETER_6G_TOLERANCE)) if (force > sq(DAL.MICROBIT_ACCELEROMETER_6G_TOLERANCE))
return DAL.MICROBIT_ACCELEROMETER_EVT_6G; return DAL.MICROBIT_ACCELEROMETER_EVT_6G;

View File

@ -4,6 +4,7 @@
@import 'themes/default/globals/site.variables'; @import 'themes/default/globals/site.variables';
@import 'themes/pxt/globals/site.variables'; @import 'themes/pxt/globals/site.variables';
@import 'site/globals/site.variables'; @import 'site/globals/site.variables';
@import 'themes/default/collections/menu.variables';
/* Reference import */ /* Reference import */
@import (reference) "semantic.less"; @import (reference) "semantic.less";
@ -44,6 +45,10 @@
border-radius:5px; border-radius:5px;
} }
.blocklyTreeRow:hover {
background: @invertedBackground !important;
}
/* This removes any padding at the top of the toolbox */ /* This removes any padding at the top of the toolbox */
.blocklyTreeRoot { .blocklyTreeRoot {
padding: 0px !important; padding: 0px !important;