Search
Preparing search index...
The search index is not available
obniz
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Parts
SainSmartTFT18LCD
SainSmartTFT18LCD
Class SainSmartTFT18LCD
Hierarchy
SainSmartTFT18LCD
Implements
ObnizPartsInterface
Index
Constructors
constructor
Properties
color
debugprint
height
io_
cs
io_
dc
io_
res
keys
obniz
params
required
Keys
spi
width
write
Buffer
Methods
_dead
Sleep
_initG
_reset
_set
Preset
Color
_write
Buffer
_write
Flush
asyncwait
color16
draw
Char
draw
Circle
draw
Context
draw
Context
Bound
drawHLine
draw
Line
draw
Pixel
draw
Rect
draw
Round
Rect
draw
String
draw
Triangle
drawVLine
fill
Circle
fill
Rect
fill
Round
Rect
fill
Screen
fill
Triangle
init
print_
debug
raw
raw
Bound
set
Addr
Window
set
Display
set
Display
Off
set
Display
On
set
Inversion
set
Inversion
Off
set
Inversion
On
set
Rotation
wired
write
write
Command
write
Data
info
Constructors
constructor
new
Sain
SmartTFT18LCD
(
)
:
SainSmartTFT18LCD
Returns
SainSmartTFT18LCD
Properties
color
color
:
PresetColor
debugprint
debugprint
:
boolean
= false
height
height
:
number
= 0
io_
cs
io_
cs
:
PeripheralIO
io_
dc
io_
dc
:
PeripheralIO
io_
res
io_
res
:
PeripheralIO
keys
keys
:
string
[]
obniz
obniz
:
Obniz
params
params
:
any
required
Keys
required
Keys
:
string
[]
spi
spi
:
PeripheralSPI
width
width
:
number
= 0
write
Buffer
write
Buffer
:
number
[]
= []
Methods
_dead
Sleep
_dead
Sleep
(
waitMsec
:
number
)
:
void
Parameters
waitMsec:
number
Returns
void
_initG
_initG
(
)
:
void
Returns
void
_reset
_reset
(
)
:
void
Returns
void
_set
Preset
Color
_set
Preset
Color
(
)
:
void
Returns
void
_write
Buffer
_write
Buffer
(
data
?:
number
[]
)
:
void
Parameters
Optional
data:
number
[]
Returns
void
_write
Flush
_write
Flush
(
)
:
void
Returns
void
asyncwait
asyncwait
(
)
:
Promise
<
number
[]
>
Returns
Promise
<
number
[]
>
color16
color16
(
r
:
number
, g
:
number
, b
:
number
)
:
RGB16
Parameters
r:
number
g:
number
b:
number
Returns
RGB16
draw
Char
draw
Char
(
x
:
number
, y
:
number
, char
:
string
, color
:
RGB16
, backgroundColor
:
RGB16
, size
?:
undefined
|
number
)
:
void
Parameters
x:
number
y:
number
char:
string
color:
RGB16
backgroundColor:
RGB16
Optional
size:
undefined
|
number
Returns
void
draw
Circle
draw
Circle
(
center_x
:
number
, center_y
:
number
, radius
:
number
, color
:
RGB16
)
:
void
Parameters
center_x:
number
center_y:
number
radius:
number
color:
RGB16
Returns
void
draw
Context
draw
Context
(
context
:
CanvasRenderingContext2D
, gray
:
boolean
)
:
void
Parameters
context:
CanvasRenderingContext2D
gray:
boolean
Returns
void
draw
Context
Bound
draw
Context
Bound
(
context
:
CanvasRenderingContext2D
, x0
:
number
, y0
:
number
, width
:
number
, height
:
number
, x1
:
number
, y1
:
number
, gray
:
boolean
)
:
void
Parameters
context:
CanvasRenderingContext2D
x0:
number
y0:
number
width:
number
height:
number
x1:
number
y1:
number
gray:
boolean
Returns
void
drawHLine
drawHLine
(
x
:
number
, y
:
number
, width
:
number
, color
:
RGB16
)
:
void
Parameters
x:
number
y:
number
width:
number
color:
RGB16
Returns
void
draw
Line
draw
Line
(
x0
:
number
, y0
:
number
, x1
:
number
, y1
:
number
, color
:
RGB16
)
:
void
Parameters
x0:
number
y0:
number
x1:
number
y1:
number
color:
RGB16
Returns
void
draw
Pixel
draw
Pixel
(
x
:
number
, y
:
number
, color
:
RGB16
)
:
void
Parameters
x:
number
y:
number
color:
RGB16
Returns
void
draw
Rect
draw
Rect
(
x
:
number
, y
:
number
, width
:
number
, height
:
number
, color
:
RGB16
)
:
void
Parameters
x:
number
y:
number
width:
number
height:
number
color:
RGB16
Returns
void
draw
Round
Rect
draw
Round
Rect
(
x
:
number
, y
:
number
, width
:
number
, height
:
number
, round
:
number
, color
:
RGB16
)
:
void
Parameters
x:
number
y:
number
width:
number
height:
number
round:
number
color:
RGB16
Returns
void
draw
String
draw
String
(
x
:
number
, y
:
number
, string
:
string
, color
:
RGB16
, backgroundColor
:
RGB16
, size
?:
undefined
|
number
, wrap
?:
undefined
|
false
|
true
)
:
[
number
,
number
]
Parameters
x:
number
y:
number
string:
string
color:
RGB16
backgroundColor:
RGB16
Optional
size:
undefined
|
number
Optional
wrap:
undefined
|
false
|
true
Returns
[
number
,
number
]
draw
Triangle
draw
Triangle
(
x0
:
number
, y0
:
number
, x1
:
number
, y1
:
number
, x2
:
number
, y2
:
number
, color
:
RGB16
)
:
void
Parameters
x0:
number
y0:
number
x1:
number
y1:
number
x2:
number
y2:
number
color:
RGB16
Returns
void
drawVLine
drawVLine
(
x
:
number
, y
:
number
, height
:
number
, color
:
RGB16
)
:
void
Parameters
x:
number
y:
number
height:
number
color:
RGB16
Returns
void
fill
Circle
fill
Circle
(
center_x
:
number
, center_y
:
number
, radius
:
number
, color
:
RGB16
)
:
void
Parameters
center_x:
number
center_y:
number
radius:
number
color:
RGB16
Returns
void
fill
Rect
fill
Rect
(
x
:
number
, y
:
number
, width
:
number
, height
:
number
, color
:
RGB16
)
:
void
Parameters
x:
number
y:
number
width:
number
height:
number
color:
RGB16
Returns
void
fill
Round
Rect
fill
Round
Rect
(
x
:
number
, y
:
number
, width
:
number
, height
:
number
, round
:
number
, color
:
RGB16
)
:
void
Parameters
x:
number
y:
number
width:
number
height:
number
round:
number
color:
RGB16
Returns
void
fill
Screen
fill
Screen
(
color
:
RGB16
)
:
void
Parameters
color:
RGB16
Returns
void
fill
Triangle
fill
Triangle
(
x0
:
number
, y0
:
number
, x1
:
number
, y1
:
number
, x2
:
number
, y2
:
number
, color
:
RGB16
)
:
void
Parameters
x0:
number
y0:
number
x1:
number
y1:
number
x2:
number
y2:
number
color:
RGB16
Returns
void
init
init
(
)
:
void
Returns
void
print_
debug
print_
debug
(
v
:
any
)
:
void
Parameters
v:
any
Returns
void
raw
raw
(
pixels
:
RGB24
[]
)
:
void
Parameters
pixels:
RGB24
[]
Returns
void
raw
Bound
raw
Bound
(
x
:
number
, y
:
number
, width
:
number
, height
:
number
, pixels
:
RGB24
[]
)
:
void
Parameters
x:
number
y:
number
width:
number
height:
number
pixels:
RGB24
[]
Returns
void
set
Addr
Window
set
Addr
Window
(
x0
:
number
, y0
:
number
, x1
:
number
, y1
:
number
)
:
void
Parameters
x0:
number
y0:
number
x1:
number
y1:
number
Returns
void
set
Display
set
Display
(
on
:
boolean
)
:
void
Parameters
on:
boolean
Returns
void
set
Display
Off
set
Display
Off
(
)
:
void
Returns
void
set
Display
On
set
Display
On
(
)
:
void
Returns
void
set
Inversion
set
Inversion
(
inversion
:
boolean
)
:
void
Parameters
inversion:
boolean
Returns
void
set
Inversion
Off
set
Inversion
Off
(
)
:
void
Returns
void
set
Inversion
On
set
Inversion
On
(
)
:
void
Returns
void
set
Rotation
set
Rotation
(
m
:
number
)
:
void
Parameters
m:
number
Returns
void
wired
wired
(
obniz
:
Obniz
)
:
void
Parameters
obniz:
Obniz
Returns
void
write
write
(
cmd
:
number
, data
:
number
[]
)
:
void
Parameters
cmd:
number
data:
number
[]
Returns
void
write
Command
write
Command
(
cmd
:
number
)
:
void
Parameters
cmd:
number
Returns
void
write
Data
write
Data
(
data
:
number
[]
)
:
void
Parameters
data:
number
[]
Returns
void
Static
info
info
(
)
:
ObnizPartsInfo
Returns
ObnizPartsInfo
Globals
Sain
SmartTFT18LCD
constructor
color
debugprint
height
io_
cs
io_
dc
io_
res
keys
obniz
params
required
Keys
spi
width
write
Buffer
_dead
Sleep
_initG
_reset
_set
Preset
Color
_write
Buffer
_write
Flush
asyncwait
color16
draw
Char
draw
Circle
draw
Context
draw
Context
Bound
drawHLine
draw
Line
draw
Pixel
draw
Rect
draw
Round
Rect
draw
String
draw
Triangle
drawVLine
fill
Circle
fill
Rect
fill
Round
Rect
fill
Screen
fill
Triangle
init
print_
debug
raw
raw
Bound
set
Addr
Window
set
Display
set
Display
Off
set
Display
On
set
Inversion
set
Inversion
Off
set
Inversion
On
set
Rotation
wired
write
write
Command
write
Data
info
Preset
Color
Sain
SmartTFT18LCDOptions
RGB16
RGB24
ST7735_
16bit
ST7735_
18bit
ST7735_
CASET
ST7735_
COLMOD
ST7735_
DISPOFF
ST7735_
DISPON
ST7735_
FRMCTR1
ST7735_
FRMCTR2
ST7735_
FRMCTR3
ST7735_
GMCTRN1
ST7735_
GMCTRP1
ST7735_
INVCTR
ST7735_
INVOFF
ST7735_
INVON
ST7735_
MADCTL
ST7735_
PWCTR1
ST7735_
PWCTR2
ST7735_
PWCTR3
ST7735_
PWCTR4
ST7735_
PWCTR5
ST7735_
RAMWR
ST7735_
RASET
ST7735_
SLPOUT
ST7735_
TFTHEIGHT
ST7735_
TFTWIDTH
ST7735_
VMCTR1
font
Generated using
TypeDoc