Use IQS62X sensor and move motor by detected angle

Dependencies:   DRV8830 IQS62x IQSDisplayTerminal UIT_ACM1602NI mbed

Fork of Nucleo_ACM1602_I2C_DC by Thinkbed

Files at this revision

API Documentation at this revision

Comitter:
MikamiUitOpen
Date:
Fri Apr 01 04:29:04 2016 +0000
Parent:
0:132eb47d57fb
Child:
2:ea066749e515
Commit message:
2

Changed in this revision

UIT_ACM1602NI.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/UIT_ACM1602NI.lib	Mon Jul 06 09:46:13 2015 +0000
+++ b/UIT_ACM1602NI.lib	Fri Apr 01 04:29:04 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/MikamiUitOpen/code/UIT_ACM1602NI/#49e6a8f8fe4f
+http://mbed.org/users/MikamiUitOpen/code/UIT_ACM1602NI/#68b93c16fd1d
--- a/main.cpp	Mon Jul 06 09:46:13 2015 +0000
+++ b/main.cpp	Fri Apr 01 04:29:04 2016 +0000
@@ -1,7 +1,7 @@
 //------------------------------------------------------------
 // Demo program for LCD ACM1602NI using I2C interface
 //      Pullup resistors for SDA and SCL: 4.7 kΩ
-// 2015/04/16, Copyright (c) 2015 MIKAMI, Naoki
+// 2016/04/01, Copyright (c) 2016 MIKAMI, Naoki
 //------------------------------------------------------------
 
 #include "ACM1602NI.hpp"
@@ -21,11 +21,15 @@
 void TimerIsr()
 {
     static int k = 0;
-    int sec = k % 60;   // seconds
-    int min = k / 60;   // minits
+
+    div_t ms = div(k, 60);
+/*
     char str[20];
-    sprintf(str, "%d'%2d\"", min, sec);
+    sprintf(str, "%d'%2d\"", ms.quot, ms.rem);
     lcd_.WriteStringXY(str, 0, 1);
+*/
+    lcd_.WriteValueXY("%d'", ms.quot, 0, 1);
+    lcd_.WriteValue("%2d\"", ms.rem);
     k++;
 }
 
--- a/mbed.bld	Mon Jul 06 09:46:13 2015 +0000
+++ b/mbed.bld	Fri Apr 01 04:29:04 2016 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/433970e64889
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/99a22ba036c9
\ No newline at end of file