예제 #1
0
static void lcd_write(int fd, uint8_t cmd, uint8_t mode /*=0*/) 
{
      lcd_write_four_bits(fd, mode | (cmd & 0xF0));
      lcd_write_four_bits(fd, mode | ((cmd << 4) & 0xF0));
}
예제 #2
0
// write a command to lcd
void LCD::lcd_write(int cmd, int mode) {
	lcd_write_four_bits(mode | (cmd & 0xF0));
    lcd_write_four_bits(mode | ((cmd << 4) & 0xF0));
}