Add generator for icon images. Generate icons and use them for the icon field editor.
This commit is contained in:
@ -181,6 +181,7 @@ namespace basic {
|
||||
//% help=basic/show-icon
|
||||
//% icon.fieldEditor="imagedropdown"
|
||||
//% icon.fieldOptions.columns="5"
|
||||
//% icon.fieldOptions.width="400"
|
||||
export function showIcon(icon: IconNames, interval = 600) {
|
||||
let res = images.iconImage(icon)
|
||||
res.showImage(0, interval)
|
||||
|
Reference in New Issue
Block a user