add doc for showIcon
This commit is contained in:
22
docs/reference/basic/show-icon.md
Normal file
22
docs/reference/basic/show-icon.md
Normal file
@ -0,0 +1,22 @@
|
||||
# Show Icon
|
||||
|
||||
Shows the selected icon on the LED screen
|
||||
|
||||
```sig
|
||||
basic.showIcon(IconNames.Heart)
|
||||
```
|
||||
|
||||
### Example
|
||||
|
||||
This program shows a happy face and then a sad face with the ``show icon`` function, with a one second pause in between.
|
||||
|
||||
```blocks
|
||||
basic.showIcon(IconNames.Happy)
|
||||
basic.pause(1000)
|
||||
basic.showIcon(IconNames.Sad)
|
||||
```
|
||||
|
||||
### See also
|
||||
|
||||
[show leds](/reference/led/show-leds)
|
||||
|
Reference in New Issue
Block a user