Chaning the order in input advanced category (#1424)
This commit is contained in:
parent
8f04ed4191
commit
670a19a9b4
@ -350,7 +350,7 @@ namespace input {
|
|||||||
/**
|
/**
|
||||||
* Gets the number of milliseconds elapsed since power on.
|
* Gets the number of milliseconds elapsed since power on.
|
||||||
*/
|
*/
|
||||||
//% help=input/running-time weight=50 blockGap=16
|
//% help=input/running-time weight=50 blockGap=8
|
||||||
//% blockId=device_get_running_time block="running time (ms)"
|
//% blockId=device_get_running_time block="running time (ms)"
|
||||||
//% advanced=true
|
//% advanced=true
|
||||||
int runningTime() {
|
int runningTime() {
|
||||||
@ -372,6 +372,7 @@ namespace input {
|
|||||||
*/
|
*/
|
||||||
//% help=input/calibrate-compass advanced=true
|
//% help=input/calibrate-compass advanced=true
|
||||||
//% blockId="input_compass_calibrate" block="calibrate compass"
|
//% blockId="input_compass_calibrate" block="calibrate compass"
|
||||||
|
//% weight=45
|
||||||
void calibrateCompass() {
|
void calibrateCompass() {
|
||||||
uBit.compass.calibrate();
|
uBit.compass.calibrate();
|
||||||
}
|
}
|
||||||
|
5
libs/core/shims.d.ts
vendored
5
libs/core/shims.d.ts
vendored
@ -324,7 +324,7 @@ declare namespace input {
|
|||||||
/**
|
/**
|
||||||
* Gets the number of milliseconds elapsed since power on.
|
* Gets the number of milliseconds elapsed since power on.
|
||||||
*/
|
*/
|
||||||
//% help=input/running-time weight=50 blockGap=16
|
//% help=input/running-time weight=50 blockGap=8
|
||||||
//% blockId=device_get_running_time block="running time (ms)"
|
//% blockId=device_get_running_time block="running time (ms)"
|
||||||
//% advanced=true shim=input::runningTime
|
//% advanced=true shim=input::runningTime
|
||||||
function runningTime(): int32;
|
function runningTime(): int32;
|
||||||
@ -341,7 +341,8 @@ declare namespace input {
|
|||||||
* Obsolete, compass calibration is automatic.
|
* Obsolete, compass calibration is automatic.
|
||||||
*/
|
*/
|
||||||
//% help=input/calibrate-compass advanced=true
|
//% help=input/calibrate-compass advanced=true
|
||||||
//% blockId="input_compass_calibrate" block="calibrate compass" shim=input::calibrateCompass
|
//% blockId="input_compass_calibrate" block="calibrate compass"
|
||||||
|
//% weight=45 shim=input::calibrateCompass
|
||||||
function calibrateCompass(): void;
|
function calibrateCompass(): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user