diff --git a/arduinoC/_images/featured.png b/arduinoC/_images/featured.png index b76bec7ea6a34d3e2e3ff107ef8161ba98a0cfdf..8648ec24217a44919fda457914d69d04709db66e 100644 Binary files a/arduinoC/_images/featured.png and b/arduinoC/_images/featured.png differ diff --git a/arduinoC/_images/icon.svg b/arduinoC/_images/icon.svg index ef32c8638863cb8fecada40588ff16f957001180..b4e3aee843dd907c545c5f9949b6be035be2e7b9 100644 --- a/arduinoC/_images/icon.svg +++ b/arduinoC/_images/icon.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/arduinoC/main.ts b/arduinoC/main.ts index f97094857fc8dd7cf26878d59bb1ba8df921da5e..e76dfc9205426d4f268ae844bffdd909c14c2248 100644 --- a/arduinoC/main.ts +++ b/arduinoC/main.ts @@ -121,7 +121,7 @@ namespace MicroblueMd40{ //% block="将[V]编码电机[DIR]速度设为[SPEED]%" blockType="command" //% V.shadow="dropdownRound" V.options="E_VARS" V.defl="E_VARS.e0" - //% SPEED.shadow="number" SPEED.min=0 SPEED.max=100 SPEED.defl=100 + //% SPEED.shadow="range" SPEED.params.min=0 SPEED.params.max=100 SPEED.defl=100 //% DIR.shadow="dropdownRound" DIR.options="CLOCKWISEE" DIR.defl="CLOCKWISEE.True" export function md40_encoder_run_pwm_duty(parameter: any, block: any) { let v = parameter.V.code; @@ -341,7 +341,7 @@ namespace MicroblueMd40{ //% block="将[V]电机[DIR]速度设为[SPEED]%" blockType="command" //% V.shadow="dropdownRound" V.options="D_VARS" V.defl="D_VARS.d0" - //% SPEED.shadow="number" SPEED.min=0 SPEED.max=100 SPEED.defl=100 + //% SPEED.shadow="range" SPEED.params.min=0 SPEED.params.max=100 SPEED.defl=100 //% DIR.shadow="dropdownRound" DIR.options="CLOCKWISEE" DIR.defl="CLOCKWISEE.True" export function md40_dc_run_pwm_duty(parameter: any, block: any) { let v = parameter.V.code; diff --git a/emakefun-emmd40-thirdex-V1.0.0.mpext b/emakefun-emmd40-thirdex-V1.0.0.mpext index a12d6f39925cc1c00ef127f6c8a644d5a2a0fefb..7d24895c974ba3c6e572d70742a84824dfaac1ba 100644 Binary files a/emakefun-emmd40-thirdex-V1.0.0.mpext and b/emakefun-emmd40-thirdex-V1.0.0.mpext differ