updated category colors theme
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
/**
 | 
			
		||||
 * Communicate data using radio packets
 | 
			
		||||
 */
 | 
			
		||||
//% color=270 weight=34
 | 
			
		||||
//% color=#E3008C weight=34
 | 
			
		||||
namespace radio {
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,7 @@
 | 
			
		||||
/**
 | 
			
		||||
 * Provides access to basic micro:bit functionality.
 | 
			
		||||
 */
 | 
			
		||||
//% color=190 weight=100
 | 
			
		||||
//% color=#0078D7 weight=100
 | 
			
		||||
namespace basic {
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 
 | 
			
		||||
@@ -21,18 +21,18 @@ enum LedSpriteProperty {
 | 
			
		||||
/**
 | 
			
		||||
 * A single-LED sprite game engine
 | 
			
		||||
 */
 | 
			
		||||
//% color=176 weight=32
 | 
			
		||||
//% color=#008272 weight=32
 | 
			
		||||
namespace game {
 | 
			
		||||
    var _score: number = 0;
 | 
			
		||||
    var _life: number = 3;
 | 
			
		||||
    var _startTime: number = 0;
 | 
			
		||||
    var _endTime: number = 0;
 | 
			
		||||
    var _isGameOver: boolean = false;
 | 
			
		||||
    var _countdownPause: number = 0;
 | 
			
		||||
    var _level: number = 1;
 | 
			
		||||
    var _gameId: number = 0;
 | 
			
		||||
    var img: Image;
 | 
			
		||||
    var sprites: LedSprite[];
 | 
			
		||||
    let _score: number = 0;
 | 
			
		||||
    let _life: number = 3;
 | 
			
		||||
    let _startTime: number = 0;
 | 
			
		||||
    let _endTime: number = 0;
 | 
			
		||||
    let _isGameOver: boolean = false;
 | 
			
		||||
    let _countdownPause: number = 0;
 | 
			
		||||
    let _level: number = 1;
 | 
			
		||||
    let _gameId: number = 0;
 | 
			
		||||
    let img: Image;
 | 
			
		||||
    let sprites: LedSprite[];
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Creates a new LED sprite pointing to the right.
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
/**
 | 
			
		||||
* Creation, manipulation and display of LED images.
 | 
			
		||||
*/
 | 
			
		||||
//% color=45 weight=31
 | 
			
		||||
//% color=#5C2D91 weight=31
 | 
			
		||||
namespace images {
 | 
			
		||||
    /**
 | 
			
		||||
     * Creates an image that fits on the LED screen.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
/**
 | 
			
		||||
 * Events and data from sensors
 | 
			
		||||
 */
 | 
			
		||||
//% color=300 weight=99
 | 
			
		||||
//% color=#B4009E weight=99
 | 
			
		||||
namespace input {
 | 
			
		||||
    /**
 | 
			
		||||
     * Attaches code to run when the screen is facing up.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
/**
 | 
			
		||||
 * Control of the LED screen.
 | 
			
		||||
 */
 | 
			
		||||
//% color=3 weight=35
 | 
			
		||||
//% color=#5C2D91 weight=35
 | 
			
		||||
    namespace led {
 | 
			
		||||
 | 
			
		||||
    // what's the current high value
 | 
			
		||||
 
 | 
			
		||||
@@ -77,7 +77,7 @@ enum BeatFraction {
 | 
			
		||||
/**
 | 
			
		||||
 * Generation of music tones through pin ``P0``.
 | 
			
		||||
 */
 | 
			
		||||
//% color=52 weight=98
 | 
			
		||||
//% color=#D83B01 weight=98
 | 
			
		||||
namespace music {
 | 
			
		||||
    let beatsPerMinute: number = 120;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
/**
 | 
			
		||||
 * Control currents in Pins for analog/digital signals, servos, i2c, ...
 | 
			
		||||
 */
 | 
			
		||||
//% color=351 weight=30
 | 
			
		||||
//% color=#A80000 weight=30
 | 
			
		||||
namespace pins {
 | 
			
		||||
    /**
 | 
			
		||||
     * Re-maps a number from one range to another. That is, a value of ``from low`` would get mapped to ``to low``, a value of ``from high`` to ``to high``, values in-between to values in-between, etc.
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,6 @@ namespace serial {
 | 
			
		||||
    //% help=serial/read-line
 | 
			
		||||
    //% blockId=serial_read_line block="serial read line"
 | 
			
		||||
    //% weight=20
 | 
			
		||||
    //% async
 | 
			
		||||
    StringData* readLine() {
 | 
			
		||||
      return uBit.serial.readUntil(ManagedString("\n")).leakData();
 | 
			
		||||
    }
 | 
			
		||||
@@ -21,7 +20,6 @@ namespace serial {
 | 
			
		||||
    //% help=serial/write-string
 | 
			
		||||
    //% weight=87
 | 
			
		||||
    //% blockId=serial_writestring block="serial write string %text"
 | 
			
		||||
    //% async
 | 
			
		||||
    void writeString(StringData *text) { 
 | 
			
		||||
      uBit.serial.send(ManagedString(text));
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
/**
 | 
			
		||||
 * Reading and writing data over a serial connection.
 | 
			
		||||
 */
 | 
			
		||||
//% weight=2 color=30
 | 
			
		||||
//% weight=2 color=#002050
 | 
			
		||||
namespace serial {
 | 
			
		||||
    /**
 | 
			
		||||
     * Prints a line of text to the serial
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								libs/microbit/shims.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								libs/microbit/shims.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -4,7 +4,7 @@
 | 
			
		||||
    /**
 | 
			
		||||
     * Creation, manipulation and display of LED images.
 | 
			
		||||
     */
 | 
			
		||||
    //% color=45 weight=31
 | 
			
		||||
    //% color=#5C2D91 weight=31
 | 
			
		||||
declare namespace images {
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
@@ -113,7 +113,7 @@ declare interface Image {
 | 
			
		||||
    /**
 | 
			
		||||
     * Provides access to basic micro:bit functionality.
 | 
			
		||||
     */
 | 
			
		||||
    //% color=190 weight=100
 | 
			
		||||
    //% color=#0078D7 weight=100
 | 
			
		||||
declare namespace basic {
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 
 | 
			
		||||
@@ -72,7 +72,7 @@
 | 
			
		||||
        "log": true
 | 
			
		||||
    },
 | 
			
		||||
    "appTheme": {
 | 
			
		||||
        "accentColor": "#5C2D91",
 | 
			
		||||
        "accentColor": "#5C005C",
 | 
			
		||||
        "logoUrl": "https://m.pxt.io/about",
 | 
			
		||||
        "logo": "./static/microbit.simplified.svg",
 | 
			
		||||
        "docsLogo": "./static/microbit.simplified.svg",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user