adding loc annotations

This commit is contained in:
Peli de Halleux 2016-11-17 05:30:10 -08:00
parent ecbf8409ea
commit c75e77593a
3 changed files with 6 additions and 0 deletions

View File

@ -73,6 +73,8 @@
"PinPullMode.PullDown|block": "down", "PinPullMode.PullDown|block": "down",
"PinPullMode.PullNone|block": "none", "PinPullMode.PullNone|block": "none",
"PinPullMode.PullUp|block": "up", "PinPullMode.PullUp|block": "up",
"PulseValue.High|block": "high",
"PulseValue.Low|block": "low",
"Rotation.Pitch|block": "pitch", "Rotation.Pitch|block": "pitch",
"Rotation.Roll|block": "roll", "Rotation.Roll|block": "roll",
"String.charAt|block": "char from %this|at %pos", "String.charAt|block": "char from %this|at %pos",

View File

@ -275,7 +275,9 @@ declare namespace led {
declare enum PulseValue { declare enum PulseValue {
//% block=high
High = 4, // MICROBIT_PIN_EVT_PULSE_HI High = 4, // MICROBIT_PIN_EVT_PULSE_HI
//% block=low
Low = 5, // MICROBIT_PIN_EVT_PULSE_LO Low = 5, // MICROBIT_PIN_EVT_PULSE_LO
} }

View File

@ -32,7 +32,9 @@ enum class AnalogPin {
}; };
enum class PulseValue { enum class PulseValue {
//% block=high
High = MICROBIT_PIN_EVT_PULSE_HI, High = MICROBIT_PIN_EVT_PULSE_HI,
//% block=low
Low = MICROBIT_PIN_EVT_PULSE_LO Low = MICROBIT_PIN_EVT_PULSE_LO
}; };