ciaa-nxp/board_ciaa_edu_4337/src/ponchos/LCD4Bit.c
//print the given character at the current cursor position. overwrites, doesn't insert.
print the given character at the current cursor position. overwrites, doesn't insert.
print the given character at the current cursor position . overwrites doesn ' t insert .
void LCD4Bit_print(int value) {
  LCD4Bit_digitalWrite(RS, HIGH);
  if (USING_RW) { LCD4Bit_digitalWrite(RW, LOW); }
  switch(value)
  {
	  case '\n': 
		currentLineNumber++;
		LCD4Bit_cursorTo(currentLineNumber, 0);
		break;
	  case '\t': 
		LCD4Bit_commandWrite(CMD_CURSOR_RIGHT);
		LCD4Bit_commandWrite(CMD_CURSOR_RIGHT);
		LCD4Bit_commandWrite(CMD_CURSOR_RIGHT);
		LCD4Bit_commandWrite(CMD_CURSOR_RIGHT);
		break;
	 default:
		LCD4Bit_pushByte(value);
  }
}
void LCD4Bit_print ( int value ) { LCD4Bit_digitalWrite ( RS , HIGH ) ; if ( USING_RW ) { LCD4Bit_digitalWrite ( RW , LOW ) ; } switch ( value ) { case ' \n ' : currentLineNumber ++ ; LCD4Bit_cursorTo ( currentLineNumber , 0 ) ; break ; case ' \t ' : LCD4Bit_commandWrite ( CMD_CURSOR_RIGHT ) ; LCD4Bit_commandWrite ( CMD_CURSOR_RIGHT ) ; LCD4Bit_commandWrite ( CMD_CURSOR_RIGHT ) ; LCD4Bit_commandWrite ( CMD_CURSOR_RIGHT ) ; break ; default : LCD4Bit_pushByte ( value ) ; } }
print the given character at the current cursor position.
print the given character at the current cursor position .
//set the RS and RW pins to show we're writing data //let pushByte worry about the intricacies of Enable, nibble order.