AD-128160-UART制御用のライブラリ http://www.aitendo.co.jp/product/3119 gingaxさんのプログラムを参考に作らせてもらっています。 http://mbed.org/users/akira/libraries/AD128160/m159hi
Dependents: AD128160_HelloWorld
AD128160 Class Reference
An interface for the AD128160 LCD display. More...
#include <AD128160.h>
Public Member Functions | |
AD128160 (PinName tx, PinName reset) | |
Create and AD128160 interface, using a tx and one DigitalOut interfaces. | |
void | pixel (int x0, int y0) |
Set a pixel on te screen. | |
void | box (int x0, int y0, int x1, int y1, int paint) |
Draw a box on the screen. | |
void | line (int x0, int y0, int x1, int y1) |
Draw a line on the screen. | |
void | circle (int x0, int y0, int r, int paint) |
Draw a circle on the screen. | |
void | locate (int column, int row) |
Locate to a screen column and row. | |
void | brightness (int value) |
Configure of the LCD's back light blightness. | |
void | color (int rgb) |
Set a color. | |
void | textBackground (bool mode, int rgb) |
Setting a text back ground. | |
void | speed (int baud) |
Configure of the LCD speed. | |
void | cls () |
Clear the screen and locate to 0,0. | |
void | reset () |
Reset of the LCD. | |
void | puts (char *s) |
Write a string to the LCD. | |
void | textSetting (int size, int rgb) |
Setting a text size and color.If this function, column and row is 0,0. | |
int | putc (int c) |
Write a character to the LCD. | |
int | printf (const char *format,...) |
Write a formated string to the LCD. | |
int | width () |
get of the LCD width | |
int | height () |
get of the LCD height | |
int | columns () |
get of the LCD colums | |
int | rows () |
get of the LCD rows |
Detailed Description
An interface for the AD128160 LCD display.
Definition at line 14 of file AD128160.h.
Constructor & Destructor Documentation
AD128160 | ( | PinName | tx, |
PinName | reset | ||
) |
Create and AD128160 interface, using a tx and one DigitalOut interfaces.
- Parameters:
-
tx A serialport(tx) reset A DigitalOut
Definition at line 3 of file AD128160.cpp.
Member Function Documentation
void box | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1, | ||
int | paint | ||
) |
Draw a box on the screen.
- Parameters:
-
x0 start point of box(X) y0 start point of box(Y) x1 end point of box(X) y1 end poinrt of box(Y) paint Setting the fill.If set of 1, fill of box.
Definition at line 225 of file AD128160.cpp.
void brightness | ( | int | value ) |
Configure of the LCD's back light blightness.
- Parameters:
-
value brightness value. range of 0-500
Definition at line 99 of file AD128160.cpp.
void circle | ( | int | x0, |
int | y0, | ||
int | r, | ||
int | paint | ||
) |
Draw a circle on the screen.
- Parameters:
-
x0 center point of circle(X) y0 centor point of circle(Y) r circle of radius paint Setting the fill.If set of 1, fill of circle.
Definition at line 241 of file AD128160.cpp.
void cls | ( | ) |
Clear the screen and locate to 0,0.
Definition at line 159 of file AD128160.cpp.
void color | ( | int | rgb ) |
Set a color.
- Parameters:
-
rgb 2byte colour in format RGB:56
Definition at line 197 of file AD128160.cpp.
int columns | ( | ) |
int height | ( | ) |
void line | ( | int | x0, |
int | y0, | ||
int | x1, | ||
int | y1 | ||
) |
Draw a line on the screen.
- Parameters:
-
x0 start point of line(X) y0 start point of line(Y) x1 end point of line(X) y1 end point of line(Y)
Definition at line 255 of file AD128160.cpp.
void locate | ( | int | column, |
int | row | ||
) |
Locate to a screen column and row.
- Parameters:
-
column The horizontal position from the left, indexed from 0 row The vertical position from the top, indexed from 0
Definition at line 167 of file AD128160.cpp.
void pixel | ( | int | x0, |
int | y0 | ||
) |
Set a pixel on te screen.
- Parameters:
-
x horizontal position from left y vertical position from top
Definition at line 214 of file AD128160.cpp.
int printf | ( | const char * | format, |
... | |||
) |
Write a formated string to the LCD.
- Parameters:
-
format A printf-style format string, followed by the variables to use in formating the string.
int putc | ( | int | c ) |
Write a character to the LCD.
- Parameters:
-
c The character to write to the display
void puts | ( | char * | s ) |
Write a string to the LCD.
- Parameters:
-
s The string to write to the display
Definition at line 172 of file AD128160.cpp.
void reset | ( | ) |
Reset of the LCD.
Definition at line 107 of file AD128160.cpp.
int rows | ( | ) |
void speed | ( | int | baud ) |
Configure of the LCD speed.
- Parameters:
-
baud baudrate of the LCD
Definition at line 115 of file AD128160.cpp.
void textBackground | ( | bool | mode, |
int | rgb | ||
) |
Setting a text back ground.
- Parameters:
-
mode If mode is true,text'backgroud is on. rgb 2byte colour in format RGB:565
Definition at line 187 of file AD128160.cpp.
void textSetting | ( | int | size, |
int | rgb | ||
) |
Setting a text size and color.If this function, column and row is 0,0.
- Parameters:
-
size text size(0:6x10 1:7x13 2:8x16 3:10x20 4:16x32) rgb 2byte colour in format RGB:565
Definition at line 46 of file AD128160.cpp.
int width | ( | ) |
Generated on Thu Jul 21 2022 17:59:06 by 1.7.2