pwm period is now 200us instead of the default 20ms veml6040 config is now AF_BIT | TRIG_BIT

Dependencies:   mbed MMA8451Q USBDevice WakeUp vt100

Fork of afero_node_suntory_2017_06_15 by Orefatoi

Revision:
13:c7d1ef8c57b3
Parent:
6:88cc04eb613a
Child:
14:b205267fa5f6
diff -r 6730d4f1bd98 -r c7d1ef8c57b3 spi/AferoCommHndlr.cpp
--- a/spi/AferoCommHndlr.cpp	Fri Apr 28 07:25:22 2017 +0000
+++ b/spi/AferoCommHndlr.cpp	Fri Apr 28 10:11:07 2017 +0000
@@ -42,7 +42,10 @@
 void
 AferoCommHndlr::loop()
 {
-    piafLib->loop();
+    for (int i=0; i< ((255/16)+3) ; ++i)
+    {
+        piafLib->loop();
+    }
     todoQ->loop();
 }
 
@@ -184,7 +187,7 @@
         else
         {
             todo->toJSON(buf);
-            SERIAL_PRINT_DBG("%s\n",buf);
+            //SERIAL_PRINT_DBG("%s\n",buf);
             self->piafLib->setAttribute(ATTR_ID_SENSE_VAL,strlen(buf),buf) != afSUCCESS ? SERIAL_PRINT_DBG("set attr failed!!\n") : NULL ;
         }
     }