An I2C text LCD library for Displaytronic ACM1602NI-FLW-FBW-M01 MOD by Zak
Fork of ACM1602NI by
Diff: ACM1602NI.cpp
- Revision:
- 5:c1dbbc2af9dd
- Parent:
- 4:33a8ca14e0e0
- Child:
- 7:728c03b52b79
diff -r 33a8ca14e0e0 -r c1dbbc2af9dd ACM1602NI.cpp --- a/ACM1602NI.cpp Sat Dec 14 14:45:38 2013 +0000 +++ b/ACM1602NI.cpp Tue Jan 14 02:16:15 2014 +0000 @@ -20,7 +20,12 @@ #define I2C_SUCCESS 0 #define I2C_FAILURE 1 -ACM1602NI::ACM1602NI(I2C &i2c): _i2c(i2c) +ACM1602NI::ACM1602NI(PinName sda, PinName scl) : _i2c(sda, scl) +{ + init(); +} + +ACM1602NI::ACM1602NI(I2C &i2c) : _i2c(i2c) { init(); }