add meta data

This commit is contained in:
Tom Ball
2017-01-30 17:05:06 -08:00
parent 3ba9d2867b
commit 2d3ca71ffb
3 changed files with 15 additions and 6 deletions

View File

@ -76,6 +76,18 @@ enum IconNames {
namespace basic {
/**
* Draws the selected icon on the LED screen
*/
//% weight=90 blockGap=8
//% blockId=basic_show_icon
//% block="show icon %i" icon="\uf00a"
//% parts="ledmatrix"
export function showIcon(icon: IconNames) {
let res = images.iconImage(icon)
res.showImage(0)
}
//% weight=50
//% blockId=basic_show_arrow block="show arrow %i=device_arrow"
export function showArrow(i: number) {
@ -90,14 +102,9 @@ namespace basic {
res.showImage(0)
}
//% weight=90
//% blockId=basic_show_icon block="show icon %i"
export function showIcon(i: IconNames) {
let res = images.iconImage(i)
res.showImage(0)
}
}
namespace images {
export enum ArrowNames {