LCDDriver_NXP_Arduino 0.2.0
Temperature sensor device operation sample code for Arduino
Loading...
Searching...
No Matches
LCDDriver.h
Go to the documentation of this file.
1
8#ifndef ARDUINO_LCD_DRIVER_H
9#define ARDUINO_LCD_DRIVER_H
10
11#include <Arduino.h>
12#include <stdint.h>
13
14#include "I2C_device.h"
15
24class PCA8561 : public I2C_device
25{
26public:
28 static const int N_COM = 4;
29
31 static const int N_SEG = 18;
32 enum reg_num {
38 };
39
44 PCA8561( uint8_t i2c_address = (0x70 >> 1) );
45 virtual ~PCA8561();
46
51 void begin( void );
52
59 void com_seg( int com, int seg, bool v );
60
66 void puts( const char* s, int dly = 0 );
67
74#ifdef putchar
75#undef putchar
76#endif
77 void putchar( char c );
78
83 void clear( bool no_flush = false );
84
85private:
86 void flush( void );
87 void char2seg( int pos, int c );
88 uint8_t bf[ 12 ];
89 char str_buffer[ 4 ];
90 int str_pos = 0;
91 static uint16_t char_pattern[61];
92};
93
94#endif // ARDUINO_LCD_DRIVER_H
@ Display_ctrl_1
Definition: LCDDriver.h:34
@ COM3_15_08
Definition: LCDDriver.h:37
@ COM2_17_16
Definition: LCDDriver.h:37
@ Device_ctrl
Definition: LCDDriver.h:33
@ COM0_07_00
Definition: LCDDriver.h:35
@ COM3_17_16
Definition: LCDDriver.h:37
@ COM3_07_00
Definition: LCDDriver.h:37
@ COM2_07_00
Definition: LCDDriver.h:36
@ COM0_15_08
Definition: LCDDriver.h:35
@ COM1_15_08
Definition: LCDDriver.h:36
@ Display_ctrl_2
Definition: LCDDriver.h:34
@ COM1_07_00
Definition: LCDDriver.h:35
@ COM1_17_16
Definition: LCDDriver.h:36
@ COM0_17_16
Definition: LCDDriver.h:35
@ Software_reset
Definition: LCDDriver.h:33
@ COM2_15_08
Definition: LCDDriver.h:36
void putchar(char c)
Definition: LCDDriver.cpp:44
void clear(bool no_flush=false)
Definition: LCDDriver.cpp:72
void puts(const char *s, int dly=0)
Definition: LCDDriver.cpp:36
void com_seg(int com, int seg, bool v)
Definition: LCDDriver.cpp:24
void flush(void)
Definition: LCDDriver.cpp:67
static uint16_t char_pattern[61]
Definition: LCDDriver.h:91
static const int N_COM
Definition: LCDDriver.h:28
static const int N_SEG
Definition: LCDDriver.h:31
void char2seg(int pos, int c)
Definition: LCDDriver.cpp:83
uint8_t bf[12]
Definition: LCDDriver.h:88
void begin(void)
Definition: LCDDriver.cpp:19
char str_buffer[4]
Definition: LCDDriver.h:89
virtual ~PCA8561()
Definition: LCDDriver.cpp:15
int str_pos
Definition: LCDDriver.h:90