ciaa-nxp/board_ciaa_edu_4337/src/ponchos/LCD4Bit.c
//push a nibble of data through the the LCD's DB4~7 pins, clocking with the Enable pin.
//We don't care what RS and RW are, here.
push a nibble of data through the the LCD's DB4~7 pins, clocking with the Enable pin.
We don't care what RS and RW are, here.
push a nibble of data through the the LCD ' s DB4~7 pins clocking with the Enable pin . We don ' t care what RS and RW are here .
void LCD4Bit_pushNibble(int value){
  int val_nibble= value & 0x0F;  
  LCD4Bit_digitalWrite(DB[0],val_nibble & 01);
  val_nibble >>= 1;
  LCD4Bit_digitalWrite(DB[1],val_nibble & 01);
  val_nibble >>= 1;
  LCD4Bit_digitalWrite(DB[2],val_nibble & 01);
  val_nibble >>= 1;
  LCD4Bit_digitalWrite(DB[3],val_nibble & 01);
  val_nibble >>= 1;
  LCD4Bit_pulseEnablePin();
}
void LCD4Bit_pushNibble ( int value ) { int val_nibble = value & 0x0F ; LCD4Bit_digitalWrite ( DB [ 0 ] , val_nibble & 01 ) ; val_nibble >>= 1 ; LCD4Bit_digitalWrite ( DB [ 1 ] , val_nibble & 01 ) ; val_nibble >>= 1 ; LCD4Bit_digitalWrite ( DB [ 2 ] , val_nibble & 01 ) ; val_nibble >>= 1 ; LCD4Bit_digitalWrite ( DB [ 3 ] , val_nibble & 01 ) ; val_nibble >>= 1 ; LCD4Bit_pulseEnablePin ( ) ; }
push a nibble of data through the the LCD's DB4~7 pins, clocking with the Enable pin.
push a nibble of data through the the LCD ' s DB4~7 pins clocking with the Enable pin .
//clean the value.  (unnecessary)