Start on the 'brick' api topics (#280)

* Start on the 'brick' api topics

* Add the delay to clear screen example

* Better output for clearsceen example
This commit is contained in:
Galen Nickel
2018-01-30 17:02:22 -08:00
committed by Peli de Halleux
parent e06659ab4c
commit 4f70d341e4
14 changed files with 222 additions and 9 deletions

View File

@ -1,7 +1,7 @@
{
"brick.Mood": "A mood",
"brick.Mood.show": "Shows the mood on the EV3",
"brick.showMood": "Shows a mood",
"brick.showMood": "Show a mood on the brick's screen",
"moods.angry": "An angry mood",
"moods.awake": "A awake mood",
"moods.dizzy": "A dizzy mood",

View File

@ -1,9 +1,10 @@
namespace brick {
/**
* Shows a mood
* Show a mood on the brick's screen
*/
//% weight=90
//% blockId=moodShow block="show mood %mood=mood_image_picker"
//% help=brick/show-mood
//% weight=101 group="Screen" blockGap=8
export function showMood(mood: Mood) {
if(mood)