Bump V3.0.22 (#110)
* change simulator svg * change radio image * Remove google fonts cdn * change color of 'advanced' button * font fix * font fix 2 * display fix * change fullsceen simulator bg * Continuous servo * handle continuous state * adding shims * update rendering for continuous servos * fixing sim * fix sig * typo * fix sim * bump pxt * bump pxt * rerun travis * Input blocks revision - add Button and Pin event types - merge onPinPressed & onPinReleased in new onPinEvent function - create new onButtonEvent function * update input blocks in docs and tests * remove device_pin_release block * Hide DAL.x behind Enum * bring back deprecated blocks, but hide them * shims and locales files * fix input.input. typing * remove buildpr * bump V3 * update simulator aspect ratio * add Loudness Block * revoke loudness block * Adds soundLevel To be replaced by pxt-common-packages when DAL is updated. * Remove P0 & P3 from AnalogPin Co-authored-by: Juri <gitkraken@juriwolf.de>
This commit is contained in:
14
libs/servo/_locales/servo-jsdoc-strings.json
Normal file
14
libs/servo/_locales/servo-jsdoc-strings.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"servos.Servo.maxAngle": "Gets the maximum angle for the servo",
|
||||
"servos.Servo.minAngle": "Gets the minimum angle for the servo",
|
||||
"servos.Servo.run": "Set the throttle on a continuous servo",
|
||||
"servos.Servo.run|param|speed": "the throttle of the motor from -100% to 100%",
|
||||
"servos.Servo.setAngle": "Set the servo angle",
|
||||
"servos.Servo.setPulse": "Set the pulse width to the servo in microseconds",
|
||||
"servos.Servo.setPulse|param|micros": "the width of the pulse in microseconds",
|
||||
"servos.Servo.setRange": "Set the possible rotation range angles for the servo between 0 and 180",
|
||||
"servos.Servo.setRange|param|maxAngle": "the maximum angle from 90 to 180",
|
||||
"servos.Servo.setRange|param|minAngle": "the minimum angle from 0 to 90",
|
||||
"servos.Servo.setStopOnNeutral": "Set a servo stop mode so it will stop when the rotation angle is in the neutral position, 90 degrees.",
|
||||
"servos.Servo.stop": "Stop sending commands to the servo so that its rotation will stop at the current position."
|
||||
}
|
14
libs/servo/_locales/servo-strings.json
Normal file
14
libs/servo/_locales/servo-strings.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"servos.P0|block": "servo P0",
|
||||
"servos.P3|block": "servo P3",
|
||||
"servos.Servo.run|block": "continuous %servo run at %speed=speedPicker \\%",
|
||||
"servos.Servo.setAngle|block": "set %servo angle to %degrees=protractorPicker °",
|
||||
"servos.Servo.setPulse|block": "set %servo pulse to %micros μs",
|
||||
"servos.Servo.setRange|block": "set %servo range from %minAngle to %maxAngle",
|
||||
"servos.Servo.setStopOnNeutral|block": "set %servo stop on neutral %enabled",
|
||||
"servos.Servo.stop|block": "stop %servo",
|
||||
"{id:category}Servos": "Servos",
|
||||
"{id:group}Configuration": "Configuration",
|
||||
"{id:group}Continuous": "Continuous",
|
||||
"{id:group}Positional": "Positional"
|
||||
}
|
@ -1,3 +1,13 @@
|
||||
{
|
||||
"additionalFilePath": "../../node_modules/pxt-common-packages/libs/servo"
|
||||
}
|
||||
"additionalFilePath": "../../node_modules/pxt-common-packages/libs/servo",
|
||||
"files": [
|
||||
"README.md",
|
||||
"servo.ts",
|
||||
"ns.ts",
|
||||
"targetoverrides.ts"
|
||||
],
|
||||
"public": true,
|
||||
"dependencies": {
|
||||
"core": "file:../core"
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,6 @@
|
||||
namespace servos {
|
||||
//% block="servo P0" fixedInstance whenUsed
|
||||
export const P0 = new servos.PinServo(pins.P0);
|
||||
//% block="servo P1" fixedInstance whenUsed
|
||||
export const P1 = new servos.PinServo(pins.P1);
|
||||
//% block="servo P2" fixedInstance whenUsed
|
||||
export const P2 = new servos.PinServo(pins.P2);
|
||||
//% block="servo P3" fixedInstance whenUsed
|
||||
export const P3 = new servos.PinServo(pins.P3);
|
||||
}
|
Reference in New Issue
Block a user