Skip to content

Latest commit

 

History

History
150 lines (94 loc) · 2.9 KB

BASIC.md

File metadata and controls

150 lines (94 loc) · 2.9 KB

Basics

Instance Basics

Create a instance

Include the M5TextScroll.h and M5Unified

#include <M5Unified.h>
#include <M5TextScroll.h>

Then Instanciate

M5TextScroll ts;

Your instance is now ready.

Functions Basic

Call the fuctions using the created instance.

ts.setPosition(x, y) => void

Set position of text scroll box.

Kind: instance method of M5TextScroll

Param Type
x int32_t
y int32_t

ts.setSpeed(speed) => void

Set scroll pixel.

Kind: instance method of M5TextScroll

Param Type
speed uint8_t

ts.setTextFont(font) => void

Set font of text.

Kind: instance method of M5TextScroll

Param Type
font lgfx::IFont*

ts.setBgColor(color) => void

Set bg color of text scroll box.

Kind: instance method of M5TextScroll

Param Type
color uint32_t

ts.setTextColor(color) => void

Set bg color of text.

Kind: instance method of M5TextScroll

Param Type
color uint32_t

ts.setText(text) => void

Set scrolling text.

Kind: instance method of M5TextScroll

Param Type
text const chat*

ts.init(x, y) => void

Initialize text scroll with position.

Param Type
x int32_t
y int32_t

Kind: instance method of M5TextSCroll

ts.start() => void

Start text scroll.

Kind: instance method of M5TextSCroll

ts.stop() => void

Stop text scroll.

Kind: instance method of M5TextSCroll

ts.isDrawing() => bool

Get if the text scroll is drawing.

Kind: instance method of M5TextSCroll

ts.isChanged() => bool

Get if the text scroll style is changed.

Kind: instance method of M5TextSCroll

ts.drawTextScroll() => void

Display text scroll.

Kind: instance method of M5TextSCroll

ts.getScrollCount() => uint8_t

Get scrolling count.

Kind: instance method of M5TextScroll