Support for pause/resume of game rendering loop (#476)

* added pause/resume

* don't override displaymode in game engine

* avoid setting light sensing display mode
This commit is contained in:
Peli de Halleux
2017-08-01 08:17:53 -07:00
committed by GitHub
parent 6a215478b0
commit 74799c65ac
9 changed files with 111 additions and 28 deletions

View File

@ -96,6 +96,14 @@ namespace led {
uBit.display.setDisplayMode((DisplayMode)mode);
}
/**
* Gets the current display mode
*/
//% weight=1 parts="ledmatrix" advanced=true
DisplayMode_ displayMode() {
return (DisplayMode_)uBit.display.getDisplayMode();
}
/**
* Turns on or off the display
*/