LCD ST7036 Library 1.2.0
LCD ST7036 Library following the LCD API 1.0
Public Member Functions
ST7036 Class Reference
Inheritance diagram for ST7036:
LCD_C0220BIZ

List of all members.

Public Member Functions

 ST7036 (uint8_t num_lines, uint8_t num_col, uint8_t i2cAddr)
 ST7036 (uint8_t num_lines, uint8_t num_col, uint8_t i2cAddr, int8_t backlightPin)
void command (uint8_t value)
void init ()
void setDelay (int, int)
virtual size_t write (uint8_t)
virtual size_t write (const uint8_t *buffer, size_t size)
void clear ()
void home ()
void on ()
virtual void off ()
void cursor_on ()
void cursor_off ()
void blink_on ()
void blink_off ()
void setCursor (uint8_t Line, uint8_t Col)

Constructor & Destructor Documentation

ST7036::ST7036 ( uint8_t  num_lines,
uint8_t  num_col,
uint8_t  i2cAddr 
)

Constructor for the display class

Parameters:
num_lines[in]Number of lines in the display
num_col[in]Number of columns in the display
i2cAddr[in]i2c address of the display
Returns:
None

ST7036(uint8_t num_lines, uint8_t num_col, uint8_t i2cAddr );

ST7036::ST7036 ( uint8_t  num_lines,
uint8_t  num_col,
uint8_t  i2cAddr,
int8_t  backlightPin 
)

Constructor for the display class with backlight allowcation pin.

Parameters:
num_lines[in]Number of lines in the display
num_col[in]Number of columns in the display
i2cAddr[in]i2c address of the display
backlightPininitiales the backlight pin.
Returns:
None

ST7036(uint8_t num_lines, uint8_t num_col, uint8_t i2cAddr );


Member Function Documentation

void ST7036::blink_off ( )

Deactivate cursor blinking. This is the default state when the display is initialised.

void blink_off ();

void ST7036::blink_on ( )

Activate cursor blink.

void blink_on();

void ST7036::clear ( )

Clear the display and set the cursor to 0,0

void clear();

void ST7036::command ( uint8_t  value)

Send a command to the display

Parameters:
value[in]Command to be sent to the display
Returns:
None

void command(uint8_t value);

void ST7036::cursor_off ( )

Turn off the cursor. This is the default state when the display is initialised.

void cursor_off();

void ST7036::cursor_on ( )

Turn on the cursor "_".

void cursor_on();

void ST7036::home ( )

Set the cursor to 0,0

void home();

void ST7036::init ( )

Initialise the display. Once created the object, this is the next operation that has to be called to initialise the display into a known state. It assumes that the I2C bus is not initialised and hence initialise the Wire interface.

Clear the display Set contrast levels Set the cursor at origens (0,0) Turn on the entire display

void init();

void ST7036::off ( ) [virtual]

Switch the display off.

void off();

void ST7036::on ( )

Switch the display on. This is the default state when the display is initialised. See. init() method

void on();

void ST7036::setCursor ( uint8_t  Line,
uint8_t  Col 
)

Set the cursor at the following coordinates (Line, Col). Initial value after initialization is (0,0).

Parameters:
Line[in]Line where to put the cursor, range (0, max display lines-1) This display only take (0, 1)
Col[in]Colum where to put the cursor, range (0, max width+1)
Returns:
None

void setCursor(uint8_t Line, uint8_t Col );

void ST7036::setDelay ( int  cmdDelay,
int  charDelay 
)

Set a different delay to that in the library. It may be needed to delay sending commands or characters one after the other.

Parameters:
cmdDelay[in]Delay after issuing a command
charDelay[in]Delay after issuing a character to the LCD
Returns:
None

void setDelay(int,int);

size_t ST7036::write ( const uint8_t *  buffer,
size_t  size 
) [virtual]

This is the write method used by the Print library. It allows printing characters to the display and new lines: print, println. It will write the value to the display and increase the cursor.

Parameters:
buffer[in]buffer to write to the current LCD write position
size[in]size of the buffer
Returns:
None

virtual void write(uint8_t, size_t);

size_t ST7036::write ( uint8_t  value) [virtual]

This is the write method used by the Print library. It allows printing characters to the display and new lines: print, println. It will write the value to the display and increase the cursor.

Parameters:
value[in]character to write to the current LCD write position
Returns:
None

virtual void write(uint8_t);


The documentation for this class was generated from the following files:
 All Classes Functions