LCDDriver_NXP_Arduino
0.2.0
Temperature sensor device operation sample code for Arduino
Loading...
Searching...
No Matches
src
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
24
class
PCA8561
:
public
I2C_device
25
{
26
public
:
28
static
const
int
N_COM
= 4;
29
31
static
const
int
N_SEG
= 18;
32
enum
reg_num
{
33
Software_reset
,
Device_ctrl
,
34
Display_ctrl_1
,
Display_ctrl_2
,
35
COM0_07_00
,
COM0_15_08
,
COM0_17_16
,
COM1_07_00
,
36
COM1_15_08
,
COM1_17_16
,
COM2_07_00
,
COM2_15_08
,
37
COM2_17_16
,
COM3_07_00
,
COM3_15_08
,
COM3_17_16
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
85
private
:
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
PCA8561
Definition:
LCDDriver.h:25
PCA8561::reg_num
reg_num
Definition:
LCDDriver.h:32
PCA8561::Display_ctrl_1
@ Display_ctrl_1
Definition:
LCDDriver.h:34
PCA8561::COM3_15_08
@ COM3_15_08
Definition:
LCDDriver.h:37
PCA8561::COM2_17_16
@ COM2_17_16
Definition:
LCDDriver.h:37
PCA8561::Device_ctrl
@ Device_ctrl
Definition:
LCDDriver.h:33
PCA8561::COM0_07_00
@ COM0_07_00
Definition:
LCDDriver.h:35
PCA8561::COM3_17_16
@ COM3_17_16
Definition:
LCDDriver.h:37
PCA8561::COM3_07_00
@ COM3_07_00
Definition:
LCDDriver.h:37
PCA8561::COM2_07_00
@ COM2_07_00
Definition:
LCDDriver.h:36
PCA8561::COM0_15_08
@ COM0_15_08
Definition:
LCDDriver.h:35
PCA8561::COM1_15_08
@ COM1_15_08
Definition:
LCDDriver.h:36
PCA8561::Display_ctrl_2
@ Display_ctrl_2
Definition:
LCDDriver.h:34
PCA8561::COM1_07_00
@ COM1_07_00
Definition:
LCDDriver.h:35
PCA8561::COM1_17_16
@ COM1_17_16
Definition:
LCDDriver.h:36
PCA8561::COM0_17_16
@ COM0_17_16
Definition:
LCDDriver.h:35
PCA8561::Software_reset
@ Software_reset
Definition:
LCDDriver.h:33
PCA8561::COM2_15_08
@ COM2_15_08
Definition:
LCDDriver.h:36
PCA8561::putchar
void putchar(char c)
Definition:
LCDDriver.cpp:44
PCA8561::clear
void clear(bool no_flush=false)
Definition:
LCDDriver.cpp:72
PCA8561::puts
void puts(const char *s, int dly=0)
Definition:
LCDDriver.cpp:36
PCA8561::com_seg
void com_seg(int com, int seg, bool v)
Definition:
LCDDriver.cpp:24
PCA8561::flush
void flush(void)
Definition:
LCDDriver.cpp:67
PCA8561::char_pattern
static uint16_t char_pattern[61]
Definition:
LCDDriver.h:91
PCA8561::N_COM
static const int N_COM
Definition:
LCDDriver.h:28
PCA8561::N_SEG
static const int N_SEG
Definition:
LCDDriver.h:31
PCA8561::char2seg
void char2seg(int pos, int c)
Definition:
LCDDriver.cpp:83
PCA8561::bf
uint8_t bf[12]
Definition:
LCDDriver.h:88
PCA8561::begin
void begin(void)
Definition:
LCDDriver.cpp:19
PCA8561::str_buffer
char str_buffer[4]
Definition:
LCDDriver.h:89
PCA8561::~PCA8561
virtual ~PCA8561()
Definition:
LCDDriver.cpp:15
PCA8561::str_pos
int str_pos
Definition:
LCDDriver.h:90
Generated by
1.9.6