Search
Preparing search index...
The search index is not available
obniz
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Parts
ST7735S
ST7735S
Class ST7735S
Hierarchy
ST7735S
Implements
ObnizPartsInterface
Index
Constructors
constructor
Properties
color
debugprint
height
io_
cs
io_
dc
io_
res
keys
obniz
params
required
Keys
rotation
spi
width
write
Buffer
x_
offset
y_
offset
Methods
_dead
Sleep
_fill
Circle
Helper
_initG
_reset
_set
Preset
Color
_write
Buffer
_write
Flush
asyncwait
color16
complementary
Color16
draw
draw
Char
draw
Char2
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
raw
Bound16
reverse
Color16
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 ST7735S
(
)
:
ST7735S
Returns
ST7735S
Properties
color
color
:
any
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
[]
rotation
rotation
:
any
spi
spi
:
PeripheralSPI
width
width
:
number
= 0
write
Buffer
write
Buffer
:
number
[]
= []
x_
offset
x_
offset
:
number
= 0
y_
offset
y_
offset
:
number
= 0
Methods
_dead
Sleep
_dead
Sleep
(
waitMsec
:
number
)
:
void
Parameters
waitMsec:
number
Returns
void
_fill
Circle
Helper
_fill
Circle
Helper
(
x0
:
number
, y0
:
number
, r
:
number
, cornername
:
any
, delta
:
number
, color
:
RGB16
)
:
void
Parameters
x0:
number
y0:
number
r:
number
cornername:
any
delta:
number
color:
RGB16
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
complementary
Color16
complementary
Color16
(
color
:
RGB16
)
:
RGB16
Parameters
color:
RGB16
Returns
RGB16
draw
draw
(
context
:
CanvasRenderingContext2D
, gray
:
boolean
)
:
void
Parameters
context:
CanvasRenderingContext2D
gray:
boolean
Returns
void
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
Char2
draw
Char2
(
x
:
number
, y
:
number
, ch
:
string
, color
:
RGB16
, bg
:
RGB16
, size
:
number
)
:
void
Parameters
x:
number
y:
number
ch:
string
color:
RGB16
bg:
RGB16
size:
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
:
RGB16
[]
)
:
void
Parameters
pixels:
RGB16
[]
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
raw
Bound16
raw
Bound16
(
x
:
number
, y
:
number
, width
:
number
, height
:
number
, pixels
:
RGB16
[]
, flush
?:
undefined
|
false
|
true
)
:
void
Parameters
x:
number
y:
number
width:
number
height:
number
pixels:
RGB16
[]
Optional
flush:
undefined
|
false
|
true
Returns
void
reverse
Color16
reverse
Color16
(
color
:
RGB16
)
:
RGB16
Parameters
color:
RGB16
Returns
RGB16
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
ST7735S
constructor
color
debugprint
height
io_
cs
io_
dc
io_
res
keys
obniz
params
required
Keys
rotation
spi
width
write
Buffer
x_
offset
y_
offset
_dead
Sleep
_fill
Circle
Helper
_initG
_reset
_set
Preset
Color
_write
Buffer
_write
Flush
asyncwait
color16
complementary
Color16
draw
draw
Char
draw
Char2
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
raw
Bound16
reverse
Color16
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
ST7735SOptions
RGB16
RGB24
ST7735
S_
TFTHEIGHT
ST7735
S_
TFTWIDTH
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_
SWRESET
ST7735_
VMCTR1
font
Generated using
TypeDoc