A collection of Analog Devices drivers for the mbed platform
« Back to documentation index
Lcd Class Reference
Lcd class.
More...
#include <Lcd.h >
Public Member Functions
void display_string (uint8_t ui8row, uint8_t ui8col, int8_t *pi8str)
Displays a string at the specified position for with 5x7 font size.
void display_symbol (uint8_t ui8row, uint8_t ui8col, uint8_t ui8width, const uint8_t *pui8symbol)
Displays a symbol (8 x width) at the specified position on the LCD.
void fill_pages (uint8_t ui8start, uint8_t ui8num, uint8_t ui8Data)
Fills the selected LCD pages with the data specified.
void set_line (uint8_t ui8line)
Sets the start line of the LCD.
void set_cursor (uint8_t ui8PA, uint8_t ui8CA)
Sets the cursor position at which data will be written.
void write_cmd (uint8_t cmd)
Initialization of LCD screen.
Static Public Attributes
static const uint8_t pui8font5x7 [96][5]
Symbol matrix structure: Font (8x14)
static const uint8_t FONT_Y_SIZE = 8
Font size for Y.
static const uint8_t OFFS_ASCII = 32
ASCII offset.
static const float ACC_TEMP_BIAS = 350
Accelerometer temperature bias(in ADC codes) at 25 Deg C.
static const float ACC_TEMP_SENSITIVITY = 0.065
Accelerometer temperature sensitivity from datasheet (DegC per Code)
Detailed Description
Lcd class.
Definition at line 58 of file Lcd.h .
Member Function Documentation
void display_string
(
uint8_t
ui8row ,
uint8_t
ui8col ,
int8_t *
pi8str
)
Displays a string at the specified position for with 5x7 font size.
Returns: none
Definition at line 112 of file Lcd.cpp .
void display_symbol
(
uint8_t
ui8row ,
uint8_t
ui8col ,
uint8_t
ui8width ,
const uint8_t *
pui8symbol
)
Displays a symbol (8 x width) at the specified position on the LCD.
Parameters:
ui8row - row number
ui8col - column number
ui8width - symbol width
pui8symbol - symbol to display
Returns: none
Definition at line 147 of file Lcd.cpp .
void fill_pages
(
uint8_t
ui8start ,
uint8_t
ui8num ,
uint8_t
ui8Data
)
Fills the selected LCD pages with the data specified.
Parameters:
ui8start - start element
ui8num - elements numbers to fill
ui8Data - data to fill
Returns: none
Definition at line 169 of file Lcd.cpp .
void set_cursor
(
uint8_t
ui8PA ,
uint8_t
ui8CA
)
Sets the cursor position at which data will be written.
Parameters:
ui8PA - page number
ui8CA - column number
Returns: none
Definition at line 209 of file Lcd.cpp .
void set_line
(
uint8_t
ui8line )
Sets the start line of the LCD.
Parameters:
ui8line - line to start with
Returns: none
Definition at line 192 of file Lcd.cpp .
void write_cmd
(
uint8_t
cmd )
Initialization of LCD screen.
Returns: none
Definition at line 67 of file Lcd.cpp .
Field Documentation
Accelerometer temperature bias(in ADC codes) at 25 Deg C.
Definition at line 130 of file Lcd.h .
Accelerometer temperature sensitivity from datasheet (DegC per Code)
Definition at line 131 of file Lcd.h .
Font size for Y.
Definition at line 127 of file Lcd.h .
ASCII offset.
Definition at line 128 of file Lcd.h .
Symbol matrix structure: Font (8x14)
Definition at line 64 of file Lcd.h .