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

Dependents:   aqm1602 FCAS-M101V1

Revision:
4:43f874a2b8e9
Parent:
3:4a1be7924c30
--- a/AQM1602.cpp	Wed Aug 31 01:49:19 2016 +0000
+++ b/AQM1602.cpp	Mon Sep 05 06:27:05 2016 +0000
@@ -161,6 +161,14 @@
 
 void AQM1602::cr()
 {
+    col = 0;
+    locate(col, row);
+    return;
+
+}
+
+void AQM1602::lf()
+{
     row++;
     row &= 1;
     int _col= col;
@@ -174,13 +182,6 @@
     return;
 }
 
-void AQM1602::lf()
-{
-    col = 0;
-    locate(col, row);
-    return;
-}
-
 void AQM1602::setDispFlag(bool disp, bool cursor, bool blink)
 {
     // set On/Off. b3=1, b2:Disp, b1:Cursor, b0:blink.