Command processor to access I2C and SPI Takes URI coded commands and returns JSON array
Fork of SerialInterface by
Diff: SerialInterface.cpp
- Revision:
- 3:601b78524967
- Parent:
- 2:3f6a8ac111a9
- Child:
- 4:0bd9ec504040
--- a/SerialInterface.cpp Thu Dec 08 05:21:57 2016 +0000 +++ b/SerialInterface.cpp Thu Dec 08 16:32:03 2016 +0000 @@ -28,6 +28,7 @@ * [data] = data to be writen, if data is included with a read, the data * will be written prior to the read to set the register address * [cnt] = number of bytes to read + * returns data read in JSON array */ void SerialInterface::fnc_i2c(char* resp) { @@ -72,8 +73,8 @@ /* SPI * /s/[data]... read+write * [data] = data to be writen - * this shifts out each data byte provided - * and returns each byte shifted in + * this shifts out each data byte provided and + * returns each byte read in a JSON array */ void SerialInterface::fnc_spi(char* resp) {