-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update default data to use speak instead of returning a string, see
- Loading branch information
1 parent
44049c2
commit 3f55fd5
Showing
22 changed files
with
11,103 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,035 changes: 1,034 additions & 1 deletion
1,035
server/default-data/spaces/games/projects/brick-breaker.json
Large diffs are not rendered by default.
Oops, something went wrong.
2,160 changes: 2,159 additions & 1 deletion
2,160
server/default-data/spaces/games/projects/electric-field-hockey.json
Large diffs are not rendered by default.
Oops, something went wrong.
882 changes: 881 additions & 1 deletion
882
server/default-data/spaces/games/projects/find-the-cupcake.json
Large diffs are not rendered by default.
Oops, something went wrong.
1,201 changes: 1,200 additions & 1 deletion
1,201
server/default-data/spaces/games/projects/rps-elements.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
440 changes: 439 additions & 1 deletion
440
server/default-data/spaces/games/projects/simple-dice-war.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
527 changes: 526 additions & 1 deletion
527
server/default-data/spaces/microcontroller-bluetooth/projects/microbit-ble-demos.json
Large diffs are not rendered by default.
Oops, something went wrong.
598 changes: 597 additions & 1 deletion
598
server/default-data/spaces/microcontroller-bluetooth/projects/microbit-ratio-game.json
Large diffs are not rendered by default.
Oops, something went wrong.
110 changes: 109 additions & 1 deletion
110
server/default-data/spaces/microcontroller-bluetooth/projects/microbit-servo-demo.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,109 @@ | ||
{"programs":[{"number":7,"title":"Servo Control by Rotation","keywords":"rotation, servo, microbit, uart","description":"Sends rotation value mapped from 0 - 180 as UART string to be read by micro:bit and set servo pin in order to set servo position.","expanded":true,"topWhiskerLength":0.2,"rightWhiskerLength":0.2,"bottomWhiskerLength":0.2,"leftWhiskerLength":0.2,"positionProperty":{"x":194.49221091091607,"y":285.21493020035035},"modelContainer":{"namedBooleanProperties":[],"namedVector2Properties":[],"namedNumberProperties":[{"name":"servoPositionNumber","propertyType":"NumberProperty","min":"-90","max":"270","defaultValue":"90"}],"namedEnumerationProperties":[],"namedDerivedProperties":[],"namedBounds2Properties":[],"namedObservableArrays":[],"namedArrayItems":[],"namedArrayItemReferences":[],"namedStringProperties":[{"name":"servoValueString","propertyType":"StringProperty","defaultValue":""}]},"controllerContainer":{"vector2PropertyControllers":[],"boundsPropertyControllers":[],"booleanPropertyControllers":[],"numberPropertyControllers":[{"name":"setServoPosition","controlledComponentName":"servoPositionNumber","controlType":"ROTATION","controlTypeFamily":"PAPER_MOVEMENT","markerColor":"all","relationshipControlType":"LINEAR"}],"enumerationPropertyControllers":[]},"viewContainer":{"soundViews":[],"descriptionViews":[],"textViews":[],"shapeViews":[],"backgroundViews":[],"imageViews":[]},"listenerContainer":{"linkListeners":[{"name":"numberToStringforUART","controlledPropertyNames":["servoValueString"],"controlFunctionString":"//Only send integers to the servo, easier on the makecode string to number parser to have an integer\r\nsetServoValueString(String(Math.round(servoPositionNumber)));","dependencyNames":["servoPositionNumber"],"referenceComponentNames":[]}],"animationListeners":[],"bluetoothListeners":[{"name":"sendServoPositionToMicroBitRX","controlledPropertyNames":[],"controlFunctionString":"writeToCharacteristic(servoValueString);\r\n\r\nconsole.log(`Sending ${servoValueString} to microbit`);","dependencyNames":["servoValueString"],"referenceComponentNames":[],"writeToCharacteristic":true,"serviceId":"6e400001-b5a3-f393-e0a9-e50e24dcca9e","characteristicId":"6e400003-b5a3-f393-e0a9-e50e24dcca9e"}]},"customCodeContainer":{"onProgramAddedCode":"","onProgramRemovedCode":"","onProgramChangedPositionCode":"","onProgramMarkersAddedCode":"","onProgramMarkersRemovedCode":"","onProgramMarkersChangedPositionCode":"","onProgramAdjacentCode":"","onProgramSeparatedCode":""}}]} | ||
{ | ||
"programs": [ | ||
{ | ||
"number": 7, | ||
"title": "Servo Control by Rotation", | ||
"keywords": "rotation, servo, microbit, uart", | ||
"description": "Sends rotation value mapped from 0 - 180 as UART string to be read by micro:bit and set servo pin in order to set servo position.", | ||
"expanded": true, | ||
"topWhiskerLength": 0.2, | ||
"rightWhiskerLength": 0.2, | ||
"bottomWhiskerLength": 0.2, | ||
"leftWhiskerLength": 0.2, | ||
"positionProperty": { | ||
"x": 194.49221091091607, | ||
"y": 285.21493020035035 | ||
}, | ||
"modelContainer": { | ||
"namedBooleanProperties": [], | ||
"namedVector2Properties": [], | ||
"namedNumberProperties": [ | ||
{ | ||
"name": "servoPositionNumber", | ||
"propertyType": "NumberProperty", | ||
"min": "-90", | ||
"max": "270", | ||
"defaultValue": "90" | ||
} | ||
], | ||
"namedEnumerationProperties": [], | ||
"namedDerivedProperties": [], | ||
"namedBounds2Properties": [], | ||
"namedObservableArrays": [], | ||
"namedArrayItems": [], | ||
"namedArrayItemReferences": [], | ||
"namedStringProperties": [ | ||
{ | ||
"name": "servoValueString", | ||
"propertyType": "StringProperty", | ||
"defaultValue": "" | ||
} | ||
] | ||
}, | ||
"controllerContainer": { | ||
"vector2PropertyControllers": [], | ||
"boundsPropertyControllers": [], | ||
"booleanPropertyControllers": [], | ||
"numberPropertyControllers": [ | ||
{ | ||
"name": "setServoPosition", | ||
"controlledComponentName": "servoPositionNumber", | ||
"controlType": "ROTATION", | ||
"controlTypeFamily": "PAPER_MOVEMENT", | ||
"markerColor": "all", | ||
"relationshipControlType": "LINEAR" | ||
} | ||
], | ||
"enumerationPropertyControllers": [] | ||
}, | ||
"viewContainer": { | ||
"soundViews": [], | ||
"descriptionViews": [], | ||
"textViews": [], | ||
"shapeViews": [], | ||
"backgroundViews": [], | ||
"imageViews": [] | ||
}, | ||
"listenerContainer": { | ||
"linkListeners": [ | ||
{ | ||
"name": "numberToStringforUART", | ||
"controlledPropertyNames": [ | ||
"servoValueString" | ||
], | ||
"controlFunctionString": "//Only send integers to the servo, easier on the makecode string to number parser to have an integer\r\nsetServoValueString(String(Math.round(servoPositionNumber)));", | ||
"dependencyNames": [ | ||
"servoPositionNumber" | ||
], | ||
"referenceComponentNames": [] | ||
} | ||
], | ||
"animationListeners": [], | ||
"bluetoothListeners": [ | ||
{ | ||
"name": "sendServoPositionToMicroBitRX", | ||
"controlledPropertyNames": [], | ||
"controlFunctionString": "writeToCharacteristic(servoValueString);\r\n\r\nconsole.log(`Sending ${servoValueString} to microbit`);", | ||
"dependencyNames": [ | ||
"servoValueString" | ||
], | ||
"referenceComponentNames": [], | ||
"writeToCharacteristic": true, | ||
"serviceId": "6e400001-b5a3-f393-e0a9-e50e24dcca9e", | ||
"characteristicId": "6e400003-b5a3-f393-e0a9-e50e24dcca9e" | ||
} | ||
] | ||
}, | ||
"customCodeContainer": { | ||
"onProgramAddedCode": "", | ||
"onProgramRemovedCode": "", | ||
"onProgramChangedPositionCode": "", | ||
"onProgramMarkersAddedCode": "", | ||
"onProgramMarkersRemovedCode": "", | ||
"onProgramMarkersChangedPositionCode": "", | ||
"onProgramAdjacentCode": "", | ||
"onProgramSeparatedCode": "" | ||
} | ||
} | ||
] | ||
} |
104 changes: 103 additions & 1 deletion
104
server/default-data/spaces/paper-craft/projects/craft-popup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,103 @@ | ||
{"programs":[{"number":1693,"title":"Froggie","keywords":"pop-up","description":"This program plays a simple sound file.","expanded":true,"topWhiskerLength":0.2,"rightWhiskerLength":0.2,"bottomWhiskerLength":0.2,"leftWhiskerLength":0.2,"positionProperty":{"x":270.6429420898877,"y":209.01529356754682},"modelContainer":{"namedBooleanProperties":[],"namedVector2Properties":[{"name":"imagePosition","propertyType":"Vector2Property","defaultX":0,"defaultY":0}],"namedNumberProperties":[{"name":"imageRotation","propertyType":"NumberProperty","min":0,"max":"6.28","defaultValue":"0"},{"name":"imageScale","propertyType":"NumberProperty","min":"0.1","max":"2","defaultValue":"1"}],"namedEnumerationProperties":[],"namedDerivedProperties":[],"namedBounds2Properties":[],"namedObservableArrays":[],"namedArrayItems":[],"namedArrayItemReferences":[],"namedStringProperties":[]},"controllerContainer":{"vector2PropertyControllers":[{"name":"imagePositionController","controlledComponentName":"imagePosition","controlType":"MATCH_CENTER","controlTypeFamily":""}],"boundsPropertyControllers":[],"booleanPropertyControllers":[],"numberPropertyControllers":[],"enumerationPropertyControllers":[]},"viewContainer":{"soundViews":[{"name":"frogNoise","modelComponentNames":["imagePosition"],"referenceComponentNames":[],"controlFunctionString":"play();","lazyLink":false,"soundFileName":"Frog-sound-ribbit.mp3","loop":true,"autoplay":false}],"speechViews":[],"textViews":[],"shapeViews":[],"backgroundViews":[],"imageViews":[]},"listenerContainer":{"linkListeners":[],"animationListeners":[],"bluetoothListeners":[]},"customCodeContainer":{"onProgramAddedCode":"","onProgramRemovedCode":"","onProgramChangedPositionCode":"","onProgramMarkersAddedCode":"","onProgramMarkersRemovedCode":"","onProgramMarkersChangedPositionCode":"","onProgramAdjacentCode":"","onProgramSeparatedCode":""}}]} | ||
{ | ||
"programs": [ | ||
{ | ||
"number": 1693, | ||
"title": "Froggie", | ||
"keywords": "pop-up", | ||
"description": "This program plays a simple sound file.", | ||
"expanded": true, | ||
"topWhiskerLength": 0.2, | ||
"rightWhiskerLength": 0.2, | ||
"bottomWhiskerLength": 0.2, | ||
"leftWhiskerLength": 0.2, | ||
"positionProperty": { | ||
"x": 270.6429420898877, | ||
"y": 209.01529356754682 | ||
}, | ||
"modelContainer": { | ||
"namedBooleanProperties": [], | ||
"namedVector2Properties": [ | ||
{ | ||
"name": "imagePosition", | ||
"propertyType": "Vector2Property", | ||
"defaultX": 0, | ||
"defaultY": 0 | ||
} | ||
], | ||
"namedNumberProperties": [ | ||
{ | ||
"name": "imageRotation", | ||
"propertyType": "NumberProperty", | ||
"min": 0, | ||
"max": "6.28", | ||
"defaultValue": "0" | ||
}, | ||
{ | ||
"name": "imageScale", | ||
"propertyType": "NumberProperty", | ||
"min": "0.1", | ||
"max": "2", | ||
"defaultValue": "1" | ||
} | ||
], | ||
"namedEnumerationProperties": [], | ||
"namedDerivedProperties": [], | ||
"namedBounds2Properties": [], | ||
"namedObservableArrays": [], | ||
"namedArrayItems": [], | ||
"namedArrayItemReferences": [], | ||
"namedStringProperties": [] | ||
}, | ||
"controllerContainer": { | ||
"vector2PropertyControllers": [ | ||
{ | ||
"name": "imagePositionController", | ||
"controlledComponentName": "imagePosition", | ||
"controlType": "MATCH_CENTER", | ||
"controlTypeFamily": "" | ||
} | ||
], | ||
"boundsPropertyControllers": [], | ||
"booleanPropertyControllers": [], | ||
"numberPropertyControllers": [], | ||
"enumerationPropertyControllers": [] | ||
}, | ||
"viewContainer": { | ||
"soundViews": [ | ||
{ | ||
"name": "frogNoise", | ||
"modelComponentNames": [ | ||
"imagePosition" | ||
], | ||
"referenceComponentNames": [], | ||
"controlFunctionString": "play();", | ||
"lazyLink": false, | ||
"soundFileName": "Frog-sound-ribbit.mp3", | ||
"loop": true, | ||
"autoplay": false | ||
} | ||
], | ||
"speechViews": [], | ||
"textViews": [], | ||
"shapeViews": [], | ||
"backgroundViews": [], | ||
"imageViews": [] | ||
}, | ||
"listenerContainer": { | ||
"linkListeners": [], | ||
"animationListeners": [], | ||
"bluetoothListeners": [] | ||
}, | ||
"customCodeContainer": { | ||
"onProgramAddedCode": "", | ||
"onProgramRemovedCode": "", | ||
"onProgramChangedPositionCode": "", | ||
"onProgramMarkersAddedCode": "", | ||
"onProgramMarkersRemovedCode": "", | ||
"onProgramMarkersChangedPositionCode": "", | ||
"onProgramAdjacentCode": "", | ||
"onProgramSeparatedCode": "" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.