support for interval in "show icon", "show arrow"

This commit is contained in:
Peli de Halleux
2017-05-25 16:52:52 -07:00
parent 0d4c5e9630
commit fb5a8cf64d
5 changed files with 45 additions and 21 deletions

View File

@ -6,6 +6,11 @@ Shows the selected icon on the LED screen
basic.showIcon(IconNames.Heart)
```
### Parameters
* ``icon``, the identifier of the icon to display
* ``interval`` (optional), the time to display in milliseconds. default is 400.
### Example
This program shows a happy face and then a sad face with the ``show icon`` function, with a one second pause in between.