Skip to content

Commit 13d6c9d

Browse files
committed
add Basci usage to README.md
1 parent 25b1fe4 commit 13d6c9d

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,24 @@ Date: 2018.Sept
77

88
![](https://github.com/microbit-makecode-packages/ScrollText/blob/master/docs/static/libs/tropic.png?raw=true)
99

10+
## Add extension
1011

11-
## usage
12-
13-
open your microbit makecode project, in Add Package, paste
12+
open your microbit makecode project, in Extension, paste
1413

1514
https://github.com/microbit-makecode-packages/ScrollText
1615

1716
to search box then search.
1817

18+
## Basic usage
19+
20+
```
21+
basic.forever(function () {
22+
ScrolText.showString("Hello", SCROLL_DIR.LEFT, 100)
23+
ScrolText.showString("Hello", SCROLL_DIR.UP, 100)
24+
ScrolText.showString("Hello", SCROLL_DIR.RIGHT, 100)
25+
ScrolText.showString("Hello", SCROLL_DIR.DOWN, 100)
26+
})
27+
```
1928

2029
## API
2130

0 commit comments

Comments
 (0)