merging microbit changes

This commit is contained in:
Peli de Halleux
2016-11-01 08:35:45 -07:00
66 changed files with 26504 additions and 697 deletions

View File

@ -84,14 +84,24 @@ namespace led {
/**
* Sets the display mode between black and white and greyscale for rendering LEDs.
* @param mode TODO
* @param mode mode the display mode in which the screen operates
*/
//% weight=1 help=led/set-display-mode
//% parts="ledmatrix"
//% parts="ledmatrix" advanced=true
void setDisplayMode(DisplayMode_ mode) {
uBit.display.setDisplayMode((DisplayMode)mode);
}
/**
* Turns on or off the display
*/
//% help=led/enable blockId=device_led_enable icon="\uf04d"
//% advanced=true parts="ledmatrix"
void enable(bool on) {
if (on) uBit.display.enable();
else uBit.display.disable();
}
/**
* Takes a screenshot of the LED screen and returns an image.
*/