예제 #1
0
//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);
}
예제 #2
0
//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);
}
예제 #3
0
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
}
예제 #4
0
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);
}
예제 #5
0
static void commandWriteNibble(int nibble) {
  digitalWrite(RS_PORT, RS_BIT, 0);
  pushNibble(nibble);
  _delay_us(27);
}
예제 #6
0
//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);
}
예제 #7
0
void LCD4Bit::commandWriteNibble(int nibble) {
  digitalWrite(RS, LOW);
  if (USING_RW) { digitalWrite(RW, LOW); }
  pushNibble(nibble);
}
예제 #8
0
void LCD4Bit_mod::commandWriteNibble(byte nibble)
{
  digitalWrite(RS, LOW);
  if (USING_RW) { digitalWrite(RW, LOW); }
  pushNibble(nibble);
}