UI changes to match the calliope design.

This commit is contained in:
Sam El-Husseini
2016-10-27 16:15:44 -07:00
parent e571bec213
commit 749ba6b984
32 changed files with 208 additions and 22 deletions

View File

@ -4,7 +4,7 @@
/**
* Provides access to basic micro:bit functionality.
*/
//% color=#0078D7 weight=100
//% color=#54C9C9 weight=100
namespace basic {
/**
* Sets the color on the build-in LED. Set to 0 to turn off.

View File

@ -34,7 +34,7 @@ enum Colors {
/**
* Provides access to basic micro:bit functionality.
*/
//% color=#0078D7 weight=100
//% color=#54C9C9 weight=100
namespace basic {
/**
* Converts the color name to a number

View File

@ -1,7 +1,7 @@
/**
* Runtime and event utilities.
*/
//% weight=1 color="#333333"
//% weight=1 color="#42495F"
//% advanced=true
namespace control {

View File

@ -108,7 +108,7 @@ enum class Gesture {
SixG = MICROBIT_ACCELEROMETER_EVT_6G
};
//% color=300 weight=99
//% color=#C90072 weight=99
namespace input {
/**
* Do something when a button (``A``, ``B`` or both ``A+B``) is pressed

View File

@ -1,7 +1,7 @@
/**
* Events and data from sensors
*/
//% color=#B4009E weight=99
//% color=#C90072 weight=99
namespace input {
/**
* Attaches code to run when the screen is facing up.

View File

@ -8,7 +8,7 @@ enum class DisplayMode_ {
// TODO DISPLAY_MODE_BLACK_AND_WHITE_LIGHT_SENSE
};
//% color=3 weight=35
//% color=#8169E6 weight=35
namespace led {
/**

View File

@ -1,7 +1,7 @@
/**
* Control of the LED screen.
*/
//% color=#5C2D91 weight=97
//% color=#8169E6 weight=97
namespace led {
// what's the current high value

View File

@ -3,7 +3,7 @@
/**
* Blocks to control the onboard motors
*/
//% weight=30
//% color=#008272 weight=30
namespace motors {
/**
* Controls the power sent to a single motor

View File

@ -125,7 +125,7 @@ enum BeatFraction {
/**
* Generation of music tones through pin ``P0``.
*/
//% color=#D83B01 weight=98
//% color=#DF4600 weight=98
namespace music {
let beatsPerMinute: number = 120;

View File

@ -126,7 +126,7 @@ declare interface Image {
/**
* Provides access to basic micro:bit functionality.
*/
//% color=#0078D7 weight=100
//% color=#54C9C9 weight=100
declare namespace basic {
/**
@ -218,7 +218,7 @@ declare namespace basic {
//% color=300 weight=99
//% color=#C90072 weight=99
declare namespace input {
/**
@ -432,7 +432,7 @@ declare namespace control {
//% color=3 weight=35
//% color=#8169E6 weight=35
declare namespace led {
/**
@ -513,7 +513,7 @@ declare namespace led {
/**
* Blocks to control the onboard motors
*/
//% weight=30
//% color=#008272 weight=30
declare namespace motors {
/**