dumped all my old arduino stuff in here.
This commit is contained in:
parent
8cc6f23f59
commit
8f8959b76f
76 changed files with 8127 additions and 2 deletions
27
libraries/LCD4Bit/LCD4Bit.h
Normal file
27
libraries/LCD4Bit/LCD4Bit.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef LCD4Bit_h
|
||||
#define LCD4Bit_h
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
class LCD4Bit {
|
||||
public:
|
||||
LCD4Bit(int num_lines);
|
||||
void commandWrite(int value);
|
||||
void init();
|
||||
void print(int value);
|
||||
void printIn(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
|
||||
Loading…
Add table
Add a link
Reference in a new issue