nucho / AD128160

AD-128160-UART制御用のライブラリ http://www.aitendo.co.jp/product/3119 gingaxさんのプログラムを参考に作らせてもらっています。 http://mbed.org/users/akira/libraries/AD128160/m159hi

Dependents:   AD128160_HelloWorld

Embed: (wiki syntax)

« Back to documentation index

AD128160 Class Reference

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:
txA serialport(tx)
resetA 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:
x0start point of box(X)
y0start point of box(Y)
x1end point of box(X)
y1end poinrt of box(Y)
paintSetting 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:
valuebrightness 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:
x0center point of circle(X)
y0centor point of circle(Y)
rcircle of radius
paintSetting 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:
rgb2byte colour in format RGB:56

Definition at line 197 of file AD128160.cpp.

int columns (  )

get of the LCD colums

Returns:
LCD colums

Definition at line 138 of file AD128160.cpp.

int height (  )

get of the LCD height

Returns:
LCD height

Definition at line 134 of file AD128160.cpp.

void line ( int  x0,
int  y0,
int  x1,
int  y1 
)

Draw a line on the screen.

Parameters:
x0start point of line(X)
y0start point of line(Y)
x1end point of line(X)
y1end 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:
columnThe horizontal position from the left, indexed from 0
rowThe 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:
xhorizontal position from left
yvertical position from top

Definition at line 214 of file AD128160.cpp.

int printf ( const char *  format,
  ... 
)

Write a formated string to the LCD.

Parameters:
formatA 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:
cThe character to write to the display
void puts ( char *  s )

Write a string to the LCD.

Parameters:
sThe 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 (  )

get of the LCD rows

Returns:
LCD rows

Definition at line 142 of file AD128160.cpp.

void speed ( int  baud )

Configure of the LCD speed.

Parameters:
baudbaudrate of the LCD

Definition at line 115 of file AD128160.cpp.

void textBackground ( bool  mode,
int  rgb 
)

Setting a text back ground.

Parameters:
modeIf mode is true,text'backgroud is on.
rgb2byte 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:
sizetext size(0:6x10 1:7x13 2:8x16 3:10x20 4:16x32)
rgb2byte colour in format RGB:565

Definition at line 46 of file AD128160.cpp.

int width (  )

get of the LCD width

Returns:
LCD width

Definition at line 130 of file AD128160.cpp.