Spi Display Draw Line; Spi Display Fill In Rectangle - Elatec TWN4 MultiTech Nano Technical Handbook

Devboard i/o extender
Hide thumbs Also See for TWN4 MultiTech Nano:
Table of Contents

Advertisement

3. Using Peripherals

3.5.4. SPI Display Draw Line

This method prints a straight horizontal or vertical line on the Display. Unlike the "SPI Display String 6x8
XY" method, the start and end coordinates are given in pixel format. A line length can effectively be a
single dot on the screen.
bool
SPIDisplayDrawLine
(
byte
xs,
byte
ys,
byte
xe,
byte
ye,
bool
bg_color
);
Parameters:
byte
xs
byte
ys
byte
xe
byte
ye
bool
bg_color
Return:

3.5.5. SPI Display Fill In Rectangle

This method fills in a rectangle on Display, overwriting everything within it. Can effectively be a single dot
on the screen.
bool
SPIDisplayFillInRectangle
(
byte
xs,
byte
ys,
byte
xe,
byte
ye,
bool
bg_color
);
Parameters:
byte
xs
byte
ys
byte
xe
byte
ye
bool
bg_color
Return:
Start Point X-Coordinate (0 <= x < 102)
Start Point Y-Coordinate (0 <= x < 64)
End Point X-Coordinate (0 <= x < 102)
End Point Y-Coordinate (0 <= x < 64)
Background Color chosen for Display (0:clear, 1:black). Usually matches
the argument given to "SPI Display Clear" command.
If the operation was successful, the return value is true , otherwise it is
false .
Start Point X-Coordinate (0 <= x < 102)
Start Point Y-Coordinate (0 <= x < 64)
End Point X-Coordinate (0 <= x < 102)
End Point Y-Coordinate (0 <= x < 64)
Filling color (0:clear, 1:black)
If the operation was successful, the return value is true , otherwise it is
false .
Page 10 of 13

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TWN4 MultiTech Nano and is the answer not in the manual?

Questions and answers

Table of Contents