void hd44780_printchr( char dta, unsigned char loc ) { // Placing cursor hd44780_write( 0x80 | loc ); hd44780_char( dta ); }
void hd44780_block_erase( unsigned char start_loc, unsigned char length ) { int i; // Placing cursor for(i=0;i<length;i++){ hd44780_write( 0x80 | (start_loc+i) ); hd44780_char( ' ' ); } }
void hd44780_printstr( char *dta, unsigned char loc ) { // Placing cursor //hd44780_write( 0b10000001 ); hd44780_write( 0x80 | loc ); while( *dta != '\0' ){ if( *dta != '\n' ){ hd44780_char( *dta ); }else{ //hd44780_write( 0xC0 ); hd44780_newline(); } dta++; } }
void hd44780_print(char *string) { char* ptr = string; while (*(ptr) != 0) { hd44780_char(*ptr++); }; }