//push a byte of data through the LCD's DB4~7 pins, in two steps, clocking each with the enable pin. static void pushByte(int value){ int val_lower = value & 0x0F; int val_upper = value >> 4; pushNibble(val_upper); pushNibble(val_lower); _delay_us(27); }
//push a byte of data through the LCD's DB4~7 pins, in two steps, clocking each with the enable pin. void LCD4Bit_mod::pushByte(byte value) { byte val_lower = value & 0x0F; byte val_upper = value >> 4; pushNibble(val_upper); pushNibble(val_lower); }
void LCD4Bit_mod::commandWriteNibble(uint8_t nibble) { clrbits(CONTROL_PORT, CONTROL_RS); #ifdef USING_RW clrbits(CONTROL_PORT, CONTROL_RW); #endif pushNibble(nibble); delayMicroseconds(40); // commands need > 37us to settle }
static void commandWriteNibble(int nibble) { digitalWrite(RS_PORT, RS_BIT, 0); #if USING_RW != 0 if (USING_RW) { digitalWrite(RW_PORT, RW_BIT, 0); } #endif pushNibble(nibble); _delay_us(27); }
static void commandWriteNibble(int nibble) { digitalWrite(RS_PORT, RS_BIT, 0); pushNibble(nibble); _delay_us(27); }
//push a byte of data through the LCD's DB4~7 pins, in two steps, clocking each with the enable pin. void LCD4Bit::pushByte(int value){ int val_lower = value & 0x0F; int val_upper = value >> 4; pushNibble(val_upper); pushNibble(val_lower); }
void LCD4Bit::commandWriteNibble(int nibble) { digitalWrite(RS, LOW); if (USING_RW) { digitalWrite(RW, LOW); } pushNibble(nibble); }
void LCD4Bit_mod::commandWriteNibble(byte nibble) { digitalWrite(RS, LOW); if (USING_RW) { digitalWrite(RW, LOW); } pushNibble(nibble); }