Updates (#96)
* Update gesture field for new Blockly renderer (#2658) * Update gesture field for new Blockly renderer * Bump pxt-core to 5.36.1 * percent sign for motors block * shims & strings Co-authored-by: Amerlander <gitkraken@juriwolf.de>
This commit is contained in:
@ -329,9 +329,9 @@
|
||||
"led.toggle|block": "toggle|x %x|y %y",
|
||||
"led.unplot|block": "unplot|x %x|y %y",
|
||||
"led|block": "led",
|
||||
"motors.dualMotorPower|block": "motor %motor|at %percent",
|
||||
"motors.dualMotorPower|block": "motor %motor|at %percent \\%",
|
||||
"motors.motorCommand|block": "motor %command",
|
||||
"motors.motorPower|block": "motor on at %percent",
|
||||
"motors.motorPower|block": "motor on at %percent \\%",
|
||||
"motors|block": "motors",
|
||||
"msgpack|block": "msgpack",
|
||||
"music.beat|block": "%fraction|beat",
|
||||
|
@ -25,7 +25,7 @@ namespace motors {
|
||||
* Turns on the motor at a certain percent of power. Switches to single motor mode!
|
||||
* @param power %percent of power sent to the motor. Negative power goes backward. eg: 50
|
||||
*/
|
||||
//% blockId=motor_on block="motor on at %percent"
|
||||
//% blockId=motor_on block="motor on at %percent \\%"
|
||||
//% parts=dcmotor weight=90 blockGap=8
|
||||
//% percent.shadow="speedPicker"
|
||||
void motorPower(int power) {
|
||||
@ -48,7 +48,7 @@ namespace motors {
|
||||
/**
|
||||
* Controls two motors attached to the board. Switches to dual-motor mode!
|
||||
*/
|
||||
//% blockId=block_dual_motor block="motor %motor|at %percent"
|
||||
//% blockId=block_dual_motor block="motor %motor|at %percent \\%"
|
||||
//% percent.shadow="speedPicker"
|
||||
//% weight=80
|
||||
void dualMotorPower(Motor motor, int duty_percent) {
|
||||
|
4
libs/core/shims.d.ts
vendored
4
libs/core/shims.d.ts
vendored
@ -598,7 +598,7 @@ declare namespace motors {
|
||||
* Turns on the motor at a certain percent of power. Switches to single motor mode!
|
||||
* @param power %percent of power sent to the motor. Negative power goes backward. eg: 50
|
||||
*/
|
||||
//% blockId=motor_on block="motor on at %percent"
|
||||
//% blockId=motor_on block="motor on at %percent \\%"
|
||||
//% parts=dcmotor weight=90 blockGap=8
|
||||
//% percent.shadow="speedPicker" shim=motors::motorPower
|
||||
function motorPower(power: int32): void;
|
||||
@ -613,7 +613,7 @@ declare namespace motors {
|
||||
/**
|
||||
* Controls two motors attached to the board. Switches to dual-motor mode!
|
||||
*/
|
||||
//% blockId=block_dual_motor block="motor %motor|at %percent"
|
||||
//% blockId=block_dual_motor block="motor %motor|at %percent \\%"
|
||||
//% percent.shadow="speedPicker"
|
||||
//% weight=80 shim=motors::dualMotorPower
|
||||
function dualMotorPower(motor: Motor, duty_percent: int32): void;
|
||||
|
Reference in New Issue
Block a user