- Basics
- Instance Basics
- Functions Basic
- ts.setPosition(x, y) => void
- ts.setSpeed(speed) => void
- ts.setTextFont(font) => void
- ts.setBgColor(color) => void
- ts.setTextColor(color) => void
- ts.setText(text) => void
- ts.init(x, y) => void
- ts.start() => void
- ts.stop() => void
- ts.isDrawing() => bool
- ts.isChanged() => bool
- ts.drawTextScroll() => void
- ts.getScrollCount() => uint8_t
Include the M5TextScroll.h
and M5Unified
#include <M5Unified.h>
#include <M5TextScroll.h>
Then Instanciate
M5TextScroll ts;
Your instance is now ready.
Call the fuctions using the created instance.
Set position of text scroll box.
Kind: instance method of M5TextScroll
Param | Type |
---|---|
x | int32_t |
y | int32_t |
Set scroll pixel.
Kind: instance method of M5TextScroll
Param | Type |
---|---|
speed | uint8_t |
Set font of text.
Kind: instance method of M5TextScroll
Param | Type |
---|---|
font | lgfx::IFont* |
Set bg color of text scroll box.
Kind: instance method of M5TextScroll
Param | Type |
---|---|
color | uint32_t |
Set bg color of text.
Kind: instance method of M5TextScroll
Param | Type |
---|---|
color | uint32_t |
Set scrolling text.
Kind: instance method of M5TextScroll
Param | Type |
---|---|
text | const chat* |
Initialize text scroll with position.
Param | Type |
---|---|
x | int32_t |
y | int32_t |
Kind: instance method of M5TextSCroll
Start text scroll.
Kind: instance method of M5TextSCroll
Stop text scroll.
Kind: instance method of M5TextSCroll
Get if the text scroll is drawing.
Kind: instance method of M5TextSCroll
Get if the text scroll style is changed.
Kind: instance method of M5TextSCroll
Display text scroll.
Kind: instance method of M5TextSCroll
Get scrolling count.
Kind: instance method of M5TextScroll