Source code
Summary of the LCD_1602 Class Library
Possible Audience: Enthusiasts interested in small LCD displays, Cpp programming, creating classes/libraries and inheriting libraries.
Test Hardware: 1602 LCD with I2C interface. Nano microcontroller and Arduino IDE.
Keywords: LCD_1602, Cpp Class/Libraries, Inherited Libraries, Scope Resolution Operator
Inherited library: LiquidCrystal_I2C
Include file class #include <LCD_1602.h>
Constructor LCD_1602 -no arguments
Public Methods
void begin( );
void message(int row, char *mess); display a message on a specified row
void message(char *mess); display char at current position
void message(int res); display integer at current position
void clear_row(int row); clear specified row
void setCursor(int col, int row); set cursor to column and row specified.**
**The label setCursor is used to demonstrate conflicts with inherited libraries.
---------------------------------------------------------------------
This project is part of a larger project DCC-Yard_Control. It will be used to aid debugging during the code development and then as a display in the final project.
------------------------------------------------------------------------
The design uses the LiquidCrystal_I2C library that assumes the I2C pins A4 and A5 on the Nano are used; That is**: