You can output chars to AQM1602 with printf(). ex. lcd.printf("iter: %5.5d.\r\n", iter);

Dependents:   aqm1602 FCAS-M101V1

Revision:
2:9233e977ee6e
Parent:
1:ac441b938a80
Child:
3:4a1be7924c30
--- a/AQM1602.h	Mon Oct 19 02:40:02 2015 +0000
+++ b/AQM1602.h	Fri Nov 06 06:29:22 2015 +0000
@@ -36,7 +36,7 @@
 public:
     AQM1602(PinName sda, PinName scl, bool pw3v3= true, char address= 0x7c);
     AQM1602(I2C &_i2c, bool pw3v3= true, char address= 0x7c);
-
+    ~AQM1602();
 //  ******************** enable printf() future of C-language. ****************
     
     /** Initialize
@@ -65,7 +65,8 @@
 
 private:
     // using i2c
-    I2C i2c;            // i2c Stream.
+    I2C *p_i2c;
+    I2C &i2c;
     char addr;          // i2c Addr.
     char buf[3];        // i2c to write char space
     int wait4cmd;       // waiting time span for sending command.