24 #if defined(ARDUINO) && ARDUINO >=100
32 #define RS 0x04 // RS pin
33 #define E 0x08 // E pin
35 #define SET_RS lcdPins |= RS
36 #define CLR_RS lcdPins &= ~RS
37 #define SET_E lcdPins |= E
38 #define CLR_E lcdPins &= ~E
40 #define SENDlcdPins() pUsb->gpioWr( lcdPins )
42 #define LCD_sendcmd(a) { CLR_RS; \
46 #define LCD_sendchar(a) { SET_RS; \
72 if ((dotsize != 0) && (lines == 1)) {
79 delayMicroseconds(50000);
85 delayMicroseconds(10000);
91 delayMicroseconds(10000);
97 delayMicroseconds(10000);
106 delayMicroseconds(10000);
126 delayMicroseconds(2000);
131 delayMicroseconds(2000);
135 int row_offsets[] = {0x00, 0x40, 0x14, 0x54};
136 if (row > _numlines) {
224 for (
int i = 0; i < 8; i++) {
233 delayMicroseconds(100);
240 void Max_LCD::sendbyte(uint8_t val) {
242 lcdPins |= (val & 0xf0);
245 delayMicroseconds(2);
247 delayMicroseconds(2);
250 lcdPins |= (val << 4) & 0xf0;
255 delayMicroseconds(100);