summaryrefslogtreecommitdiffstats
path: root/app/lcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/lcd.c')
-rw-r--r--app/lcd.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/app/lcd.c b/app/lcd.c
index 5fc0b03..714e850 100644
--- a/app/lcd.c
+++ b/app/lcd.c
@@ -52,9 +52,9 @@ clock_nibble (uint8_t n)
{
if (backlight)
n |= LINE_BACKLIGHT;
- i2c1_bb_send_data (n);
- i2c1_bb_send_data (LINE_EN | n);
- i2c1_bb_send_data (n);
+ i2c_bb_send_data (n);
+ i2c_bb_send_data (LINE_EN | n);
+ i2c_bb_send_data (n);
}
@@ -92,9 +92,9 @@ send_command (uint8_t c)
static void
send_one_command (uint8_t cmd, int delay)
{
- i2c1_bb_start_transaction (PCF8574_I2C_ADDRESS, I2C_WRITE);
+ i2c_bb_start_transaction (PCF8574_I2C_ADDRESS, I2C_WRITE);
send_command (cmd);
- i2c1_bb_stop ();
+ i2c_bb_stop ();
if (delay)
delay_ms (delay);
}
@@ -150,7 +150,7 @@ lcd_refresh (void)
int addr;
- i2c1_bb_start_transaction (PCF8574_I2C_ADDRESS, I2C_WRITE);
+ i2c_bb_start_transaction (PCF8574_I2C_ADDRESS, I2C_WRITE);
for (r = 0; r < LCD_H; ++r)
@@ -178,7 +178,7 @@ lcd_refresh (void)
}
}
- i2c1_bb_stop ();
+ i2c_bb_stop ();
}
void
@@ -299,9 +299,9 @@ lcd_backlight (int i)
{
backlight = i;
- i2c1_bb_start_transaction (PCF8574_I2C_ADDRESS, I2C_WRITE);
- i2c1_bb_send_data (backlight ? LINE_BACKLIGHT : 0);
- i2c1_bb_stop ();
+ i2c_bb_start_transaction (PCF8574_I2C_ADDRESS, I2C_WRITE);
+ i2c_bb_send_data (backlight ? LINE_BACKLIGHT : 0);
+ i2c_bb_stop ();
}
@@ -312,7 +312,7 @@ lcd_backlight (int i)
void
lcd_reset (void)
{
- i2c1_bb_start_transaction (PCF8574_I2C_ADDRESS, I2C_WRITE);
+ i2c_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);
- i2c1_bb_stop ();
+ i2c_bb_stop ();
on ();
cls ();
}