blob: 7318c32703246bef0395ee445889bad5eeed29c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef LCD4Bit_mod_h
#define LCD4Bit_mod_h
#include <inttypes.h>
class LCD4Bit_mod {
public:
LCD4Bit_mod(int num_lines);
void commandWrite(int value);
void init();
void print(int value);
void printIn(const char* value);
void clear();
//non-core---------------
void cursorTo(int line_num, int x);
void leftScroll(int chars, int delay_time);
//end of non-core--------
//4bit only, therefore ideally private but may be needed by user
void commandWriteNibble(int nibble);
private:
void pulseEnablePin();
void pushNibble(int nibble);
void pushByte(int value);
};
#endif
|