disable simulator crash, disable parts
This commit is contained in:
parent
580f1bf24e
commit
a0b426bdf0
@ -169,9 +169,9 @@
|
||||
"led.unplot|param|x": "TODO",
|
||||
"led.unplot|param|y": "TODO",
|
||||
"motors": "Blocks to control the onboard motors",
|
||||
"motors.dualMotorPower": "Controls two motors attached to the board.",
|
||||
"motors.motorCommand": "Send break, coast or sleep commands to the motor",
|
||||
"motors.motorPower": "Turns on the motor at a certain percent of power.",
|
||||
"motors.dualMotorPower": "Controls two motors attached to the board. Switches to dual-motor mode!",
|
||||
"motors.motorCommand": "Send break, coast or sleep commands to the motor. Has no effect in dual-motor mode.",
|
||||
"motors.motorPower": "Turns on the motor at a certain percent of power. Switches to single motor mode!",
|
||||
"motors.motorPower|param|power": "%percent of power sent to the motor. Negative power goes backward. eg: 50",
|
||||
"music": "Generation of music tones through pin ``P0``.",
|
||||
"music.beat": "Returns the duration of a beat in milli-seconds",
|
||||
@ -180,7 +180,6 @@
|
||||
"music.noteFrequency": "Gets the frequency of a note.",
|
||||
"music.noteFrequency|param|name": "the note name",
|
||||
"music.playTone": "Plays a tone through ``speaker`` for the given duration.",
|
||||
"music.playTone|param|frequency": "pitch of the tone to play in Hertz (Hz)",
|
||||
"music.playTone|param|ms": "tone duration in milliseconds (ms)",
|
||||
"music.rest": "Rests (plays nothing) for a specified time through pin ``P0``.",
|
||||
"music.rest|param|ms": "rest duration in milliseconds (ms)",
|
||||
|
4
libs/core/dal.d.ts
vendored
4
libs/core/dal.d.ts
vendored
@ -153,6 +153,9 @@ declare const enum DAL {
|
||||
CALLIOPE_ID_IO_P14 = 38,
|
||||
CALLIOPE_ID_IO_P15 = 39,
|
||||
CALLIOPE_ID_IO_P22 = 40,
|
||||
CALLIOPE_ID_IO_P28 = 41,
|
||||
CALLIOPE_ID_IO_P29 = 42,
|
||||
CALLIOPE_ID_IO_P30 = 43,
|
||||
MICROBIT_ID_MESSAGE_BUS_LISTENER = 1021,
|
||||
MICROBIT_ID_NOTIFY_ONE = 1022,
|
||||
MICROBIT_ID_NOTIFY = 1023,
|
||||
@ -428,7 +431,6 @@ declare const enum DAL {
|
||||
MICROBIT_ACCELEROMETER_FREEFALL_TOLERANCE = 400,
|
||||
MICROBIT_ACCELEROMETER_SHAKE_TOLERANCE = 400,
|
||||
MICROBIT_ACCELEROMETER_2G_TOLERANCE = 2048,
|
||||
MICROBIT_ACCELEROMETER_3G_TOLERANCE = 3072,
|
||||
MICROBIT_ACCELEROMETER_6G_TOLERANCE = 6144,
|
||||
MICROBIT_ACCELEROMETER_8G_TOLERANCE = 8192,
|
||||
MICROBIT_ACCELEROMETER_GESTURE_DAMPING = 5,
|
||||
|
@ -185,7 +185,7 @@
|
||||
"pinDistance": 65,
|
||||
"pinLocations": [
|
||||
{"x": 89, "y": 48},
|
||||
{"x": 395, "y": 48} ]
|
||||
{"x": 393, "y": 48} ]
|
||||
},
|
||||
"pinDefinitions": [
|
||||
{ "target": "M_OUT1", "style": "croc", "orientation": "-Z"},
|
||||
|
@ -60,7 +60,7 @@
|
||||
"autoRun": true,
|
||||
"streams": true,
|
||||
"aspectRatio": 1.13,
|
||||
"parts": true,
|
||||
"parts": false,
|
||||
"partsAspectRatio": 0.69,
|
||||
"boardDefinition": {
|
||||
"visual": "calliope",
|
||||
|
@ -199,8 +199,9 @@ namespace pxsim {
|
||||
if (force < sq(DAL.MICROBIT_ACCELEROMETER_FREEFALL_TOLERANCE))
|
||||
return DAL.MICROBIT_ACCELEROMETER_EVT_FREEFALL;
|
||||
|
||||
if (force > sq(DAL.MICROBIT_ACCELEROMETER_3G_TOLERANCE))
|
||||
return DAL.MICROBIT_ACCELEROMETER_EVT_3G;
|
||||
// TODO: fix this
|
||||
//if (force > sq(DAL.MICROBIT_ACCELEROMETER_3G_TOLERANCE))
|
||||
// return DAL.MICROBIT_ACCELEROMETER_EVT_3G;
|
||||
|
||||
if (force > sq(DAL.MICROBIT_ACCELEROMETER_6G_TOLERANCE))
|
||||
return DAL.MICROBIT_ACCELEROMETER_EVT_6G;
|
||||
|
Loading…
Reference in New Issue
Block a user