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; \
75 if ((dotsize != 0) && (lines == 1)) {
82 delayMicroseconds(50000);
88 delayMicroseconds(10000);
94 delayMicroseconds(10000);
100 delayMicroseconds(10000);
109 delayMicroseconds(10000);
130 delayMicroseconds(2000);
136 delayMicroseconds(2000);
141 int row_offsets[] = { 0x00, 0x40, 0x14, 0x54 };
142 if ( row > _numlines ) {
217 for (
int i=0; i<8; i++) {
226 delayMicroseconds(100);
233 void Max_LCD::sendbyte( uint8_t val )
236 lcdPins |= ( val & 0xf0 );
239 delayMicroseconds(2);
241 delayMicroseconds(2);
244 lcdPins |= ( val << 4 ) & 0xf0;
249 delayMicroseconds(100);