Command processor to access I2C and SPI Takes URI coded commands and returns JSON array

Fork of SerialInterface by Greg Steiert

Revision:
7:06a2eb2483f6
Parent:
6:c9b7256c8261
Child:
8:a0937dc92631
--- a/SerialInterface.h	Thu Dec 15 03:56:56 2016 +0000
+++ b/SerialInterface.h	Thu Dec 15 17:42:33 2016 +0000
@@ -39,7 +39,7 @@
     /** Create a SerialInterface interface
      *
      */
-    SerialInterface(I2C &i2c, SPI &spi);
+    SerialInterface(I2C &i2c, SPI &spi, DigitalInOut* gpio, AnalogIn* ain);
 
     ~SerialInterface();
 
@@ -52,12 +52,7 @@
         IA_RDDA     /**< Read Data, data to write prior to read */
     };
 
-    /** Initialize the digital pins and PWM
-     *
-     */
-    void init(DigitalInOut* gpio, AnalogIn* ain);
-
-    /** Process Remote Arduino Peripheral Module Command
+    /** Process URI encoded commands
      *
      *  @param input a pointer to the string containing the command
      *  @param output a pointer to the string to write the result