From ff7e2824011f787acd730ac788b06610c6e40132 Mon Sep 17 00:00:00 2001 From: James McKenzie Date: Sun, 2 Aug 2015 23:37:49 +0100 Subject: fish --- app/lcd.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'app/lcd.c') diff --git a/app/lcd.c b/app/lcd.c index 714e850..5fc0b03 100644 --- a/app/lcd.c +++ b/app/lcd.c @@ -52,9 +52,9 @@ clock_nibble (uint8_t n) { if (backlight) n |= LINE_BACKLIGHT; - i2c_bb_send_data (n); - i2c_bb_send_data (LINE_EN | n); - i2c_bb_send_data (n); + i2c1_bb_send_data (n); + i2c1_bb_send_data (LINE_EN | n); + i2c1_bb_send_data (n); } @@ -92,9 +92,9 @@ send_command (uint8_t c) static void send_one_command (uint8_t cmd, int delay) { - i2c_bb_start_transaction (PCF8574_I2C_ADDRESS, I2C_WRITE); + i2c1_bb_start_transaction (PCF8574_I2C_ADDRESS, I2C_WRITE); send_command (cmd); - i2c_bb_stop (); + i2c1_bb_stop (); if (delay) delay_ms (delay); } @@ -150,7 +150,7 @@ lcd_refresh (void) int addr; - i2c_bb_start_transaction (PCF8574_I2C_ADDRESS, I2C_WRITE); + i2c1_bb_start_transaction (PCF8574_I2C_ADDRESS, I2C_WRITE); for (r = 0; r < LCD_H; ++r) @@ -178,7 +178,7 @@ lcd_refresh (void) } } - i2c_bb_stop (); + i2c1_bb_stop (); } void @@ -299,9 +299,9 @@ lcd_backlight (int i) { backlight = i; - i2c_bb_start_transaction (PCF8574_I2C_ADDRESS, I2C_WRITE); - i2c_bb_send_data (backlight ? LINE_BACKLIGHT : 0); - i2c_bb_stop (); + i2c1_bb_start_transaction (PCF8574_I2C_ADDRESS, I2C_WRITE); + i2c1_bb_send_data (backlight ? LINE_BACKLIGHT : 0); + i2c1_bb_stop (); } @@ -312,7 +312,7 @@ lcd_backlight (int i) void lcd_reset (void) { - i2c_bb_start_transaction (PCF8574_I2C_ADDRESS, I2C_WRITE); + i2c1_bb_start_transaction (PCF8574_I2C_ADDRESS, I2C_WRITE); clock_nibble (0x30); delay_ms (5); clock_nibble (0x30); @@ -322,7 +322,7 @@ lcd_reset (void) clock_nibble (0x20); send_command (LCD_FUNC | LCD_FUNC_4BIT | LCD_FUNC_2ROWS | LCD_FUNC_5X7); - i2c_bb_stop (); + i2c1_bb_stop (); on (); cls (); } -- cgit v1.2.3