LCDDriver_NXP_Arduino 0.2.0
Temperature sensor device operation sample code for Arduino
|
#include <LCDDriver.h>
Public Types | |
enum | reg_num { Software_reset , Device_ctrl , Display_ctrl_1 , Display_ctrl_2 , COM0_07_00 , COM0_15_08 , COM0_17_16 , COM1_07_00 , COM1_15_08 , COM1_17_16 , COM2_07_00 , COM2_15_08 , COM2_17_16 , COM3_07_00 , COM3_15_08 , COM3_17_16 } |
Public Member Functions | |
PCA8561 (uint8_t i2c_address=(0x70 > > 1)) | |
virtual | ~PCA8561 () |
void | begin (void) |
void | com_seg (int com, int seg, bool v) |
void | puts (const char *s, int dly=0) |
void | putchar (char c) |
void | clear (bool no_flush=false) |
Static Public Attributes | |
static const int | N_COM = 4 |
static const int | N_SEG = 18 |
Private Member Functions | |
void | flush (void) |
void | char2seg (int pos, int c) |
Private Attributes | |
uint8_t | bf [12] |
char | str_buffer [4] |
int | str_pos = 0 |
Static Private Attributes | |
static uint16_t | char_pattern [61] |
LCDDriver operation library for Arduino
Released under the MIT license License PCA8561 class
PCA8561 class is a sample code for the PCA8561AHN-ARD It demonstrates LCD operation by
Definition at line 24 of file LCDDriver.h.
enum PCA8561::reg_num |
Enumerator | |
---|---|
Software_reset | |
Device_ctrl | |
Display_ctrl_1 | |
Display_ctrl_2 | |
COM0_07_00 | |
COM0_15_08 | |
COM0_17_16 | |
COM1_07_00 | |
COM1_15_08 | |
COM1_17_16 | |
COM2_07_00 | |
COM2_15_08 | |
COM2_17_16 | |
COM3_07_00 | |
COM3_15_08 | |
COM3_17_16 |
Definition at line 32 of file LCDDriver.h.
PCA8561::PCA8561 | ( | uint8_t | i2c_address = (0x70 >> 1) | ) |
Create a PCA8561 instance with specified address
i2c_address | I2C-bus address (default: (0x70>>1)) |
Definition at line 5 of file LCDDriver.cpp.
|
virtual |
Definition at line 15 of file LCDDriver.cpp.
void PCA8561::begin | ( | void | ) |
Begin the device operation
This method turns-on the device
Definition at line 19 of file LCDDriver.cpp.
|
private |
Definition at line 83 of file LCDDriver.cpp.
Referenced by putchar().
void PCA8561::clear | ( | bool | no_flush = false | ) |
Clear display
no_flush | no immidiate display clear (display will be cleared at next "putchar()" or "puts()" call) |
Definition at line 72 of file LCDDriver.cpp.
Referenced by putchar().
void PCA8561::com_seg | ( | int | com, |
int | seg, | ||
bool | v | ||
) |
Access to a segment
com | LCD backplane output select |
seg | LCD segment output select |
v | true for the segment ON |
Definition at line 24 of file LCDDriver.cpp.
|
private |
Definition at line 67 of file LCDDriver.cpp.
void PCA8561::putchar | ( | char | c | ) |
Character output
Putting '
' or '\r' character to clear display in next "putchar()" or "puts()" call
c | A character to display |
Definition at line 44 of file LCDDriver.cpp.
Referenced by puts().
void PCA8561::puts | ( | const char * | s, |
int | dly = 0 |
||
) |
String output
s | A string to display |
dly | Option parameter for scroll effect each character appears with this delay [mili-second] (default: 0) |
Definition at line 36 of file LCDDriver.cpp.
|
private |
Definition at line 88 of file LCDDriver.h.
Referenced by char2seg(), clear(), flush(), and PCA8561().
|
staticprivate |
Definition at line 91 of file LCDDriver.h.
Referenced by char2seg().
|
static |
The number of LCD backplane output
Definition at line 28 of file LCDDriver.h.
|
static |
The number of LCD segment output
Definition at line 31 of file LCDDriver.h.
|
private |
Definition at line 89 of file LCDDriver.h.
Referenced by putchar().
|
private |
Definition at line 90 of file LCDDriver.h.