|
@ -24,35 +24,35 @@ |
|
|
// can't assume that its in that state when a sketch starts (and the
|
|
|
// can't assume that its in that state when a sketch starts (and the
|
|
|
// LiquidCrystal constructor is called).
|
|
|
// LiquidCrystal constructor is called).
|
|
|
|
|
|
|
|
|
LiquidCrystal::LiquidCrystal(uint8_t rs, uint8_t rw, uint8_t enable, |
|
|
LiquidCrystal::LiquidCrystal(pin_t rs, pin_t rw, pin_t enable, |
|
|
uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, |
|
|
pin_t d0, pin_t d1, pin_t d2, pin_t d3, |
|
|
uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7) |
|
|
pin_t d4, pin_t d5, pin_t d6, pin_t d7) |
|
|
{ |
|
|
{ |
|
|
init(0, rs, rw, enable, d0, d1, d2, d3, d4, d5, d6, d7); |
|
|
init(0, rs, rw, enable, d0, d1, d2, d3, d4, d5, d6, d7); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
LiquidCrystal::LiquidCrystal(uint8_t rs, uint8_t enable, |
|
|
LiquidCrystal::LiquidCrystal(pin_t rs, pin_t enable, |
|
|
uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, |
|
|
pin_t d0, pin_t d1, pin_t d2, pin_t d3, |
|
|
uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7) |
|
|
pin_t d4, pin_t d5, pin_t d6, pin_t d7) |
|
|
{ |
|
|
{ |
|
|
init(0, rs, 255, enable, d0, d1, d2, d3, d4, d5, d6, d7); |
|
|
init(0, rs, P_NC, enable, d0, d1, d2, d3, d4, d5, d6, d7); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
LiquidCrystal::LiquidCrystal(uint8_t rs, uint8_t rw, uint8_t enable, |
|
|
LiquidCrystal::LiquidCrystal(pin_t rs, pin_t rw, pin_t enable, |
|
|
uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3) |
|
|
pin_t d0, pin_t d1, pin_t d2, pin_t d3) |
|
|
{ |
|
|
{ |
|
|
init(1, rs, rw, enable, d0, d1, d2, d3, 0, 0, 0, 0); |
|
|
init(1, rs, rw, enable, d0, d1, d2, d3, P_NC, P_NC, P_NC, P_NC); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
LiquidCrystal::LiquidCrystal(uint8_t rs, uint8_t enable, |
|
|
LiquidCrystal::LiquidCrystal(pin_t rs, pin_t enable, |
|
|
uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3) |
|
|
pin_t d0, pin_t d1, pin_t d2, pin_t d3) |
|
|
{ |
|
|
{ |
|
|
init(1, rs, 255, enable, d0, d1, d2, d3, 0, 0, 0, 0); |
|
|
init(1, rs, P_NC, enable, d0, d1, d2, d3, P_NC, P_NC, P_NC, P_NC); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void LiquidCrystal::init(uint8_t fourbitmode, uint8_t rs, uint8_t rw, uint8_t enable, |
|
|
void LiquidCrystal::init(uint8_t fourbitmode, pin_t rs, pin_t rw, pin_t enable, |
|
|
uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, |
|
|
pin_t d0, pin_t d1, pin_t d2, pin_t d3, |
|
|
uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7) |
|
|
pin_t d4, pin_t d5, pin_t d6, pin_t d7) |
|
|
{ |
|
|
{ |
|
|
_rs_pin = rs; |
|
|
_rs_pin = rs; |
|
|
_rw_pin = rw; |
|
|
_rw_pin = rw; |
|
|