Slightly adjust non-advanced category weights (#1091)
This commit is contained in:
parent
4c28160a34
commit
da15752720
@ -4,7 +4,7 @@
|
||||
/**
|
||||
* Provides access to basic micro:bit functionality.
|
||||
*/
|
||||
//% color=#0078D7 weight=100 icon="\uf00a"
|
||||
//% color=#0078D7 weight=116 icon="\uf00a"
|
||||
namespace basic {
|
||||
|
||||
/**
|
||||
|
@ -158,7 +158,7 @@ enum class MesDpadButtonInfo {
|
||||
_4Up = MES_DPAD_BUTTON_4_UP,
|
||||
};
|
||||
|
||||
//% color=#B4009E weight=99 icon="\uf192"
|
||||
//% color=#B4009E weight=111 icon="\uf192"
|
||||
namespace input {
|
||||
/**
|
||||
* Do something when a button (A, B or both A+B) is pushed down and released again.
|
||||
@ -372,8 +372,8 @@ namespace input {
|
||||
*/
|
||||
//% help=input/calibrate-compass advanced=true
|
||||
//% blockId="input_compass_calibrate" block="calibrate compass"
|
||||
void calibrateCompass() {
|
||||
uBit.compass.calibrate();
|
||||
void calibrateCompass() {
|
||||
uBit.compass.calibrate();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Events and data from sensors
|
||||
*/
|
||||
//% color=#B4009E weight=99 icon="\uf192"
|
||||
//% color=#B4009E weight=111 icon="\uf192"
|
||||
namespace input {
|
||||
/**
|
||||
* Attaches code to run when the screen is facing up.
|
||||
|
@ -8,7 +8,7 @@ enum class DisplayMode_ {
|
||||
// TODO DISPLAY_MODE_BLACK_AND_WHITE_LIGHT_SENSE
|
||||
};
|
||||
|
||||
//% color=#5C2D91 weight=97 icon="\uf205"
|
||||
//% color=#5C2D91 weight=101 icon="\uf205"
|
||||
namespace led {
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Control of the LED screen.
|
||||
*/
|
||||
//% color=#5C2D91 weight=97 icon="\uf205"
|
||||
//% color=#5C2D91 weight=101 icon="\uf205"
|
||||
namespace led {
|
||||
|
||||
// what's the current high value
|
||||
@ -31,9 +31,9 @@
|
||||
barGraphHighLast = now;
|
||||
}
|
||||
|
||||
// normalize lack of data to 0..1
|
||||
// normalize lack of data to 0..1
|
||||
if (barGraphHigh < 16 * Number.EPSILON)
|
||||
barGraphHigh = 1;
|
||||
barGraphHigh = 1;
|
||||
|
||||
// normalize value to 0..1
|
||||
const v = value / barGraphHigh;
|
||||
|
@ -163,7 +163,7 @@ enum MusicEvent {
|
||||
/**
|
||||
* Generation of music tones.
|
||||
*/
|
||||
//% color=#D83B01 weight=98 icon="\uf025"
|
||||
//% color=#D83B01 weight=106 icon="\uf025"
|
||||
namespace music {
|
||||
let beatsPerMinute: number = 120;
|
||||
let freqTable: number[] = [];
|
||||
|
6
libs/core/shims.d.ts
vendored
6
libs/core/shims.d.ts
vendored
@ -127,7 +127,7 @@ declare interface Image {
|
||||
/**
|
||||
* Provides access to basic micro:bit functionality.
|
||||
*/
|
||||
//% color=#0078D7 weight=100 icon="\uf00a"
|
||||
//% color=#0078D7 weight=116 icon="\uf00a"
|
||||
declare namespace basic {
|
||||
|
||||
/**
|
||||
@ -203,7 +203,7 @@ declare namespace basic {
|
||||
|
||||
|
||||
|
||||
//% color=#B4009E weight=99 icon="\uf192"
|
||||
//% color=#B4009E weight=111 icon="\uf192"
|
||||
declare namespace input {
|
||||
|
||||
/**
|
||||
@ -435,7 +435,7 @@ declare namespace control {
|
||||
|
||||
|
||||
|
||||
//% color=#5C2D91 weight=97 icon="\uf205"
|
||||
//% color=#5C2D91 weight=101 icon="\uf205"
|
||||
declare namespace led {
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user