HIT Project #3 https://community.freescale.com/docs/DOC-99621
Dependencies: EthernetInterface WebSocketClient mbed-rtos mbed
MonkeyDo!
These are the demo files for Freescale HIT project #3: Monkey Do. It uses a FRDM-AUTO + a FRDM-K64F to demo websockets for a simple IoT application.
See the main MonkeyDo page for all of the schematics, videos, GitHub links, etc for everything else!
https://community.freescale.com/docs/DOC-99621
Revision 1:d87a428e88ee, committed 2014-07-17
- Comitter:
- emh203
- Date:
- Thu Jul 17 00:18:36 2014 +0000
- Parent:
- 0:29f58b9daa2c
- Commit message:
- Version for 1st project release
Changed in this revision
GLUE/IO.cpp | 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 |
diff -r 29f58b9daa2c -r d87a428e88ee GLUE/IO.cpp --- a/GLUE/IO.cpp Fri Jul 04 22:55:47 2014 +0000 +++ b/GLUE/IO.cpp Thu Jul 17 00:18:36 2014 +0000 @@ -9,5 +9,3 @@ AnalogIn TempSensor(PTB11); Serial PC(PTB17, PTB16); - -extern EthernetInterface eth;
diff -r 29f58b9daa2c -r d87a428e88ee main.cpp --- a/main.cpp Fri Jul 04 22:55:47 2014 +0000 +++ b/main.cpp Thu Jul 17 00:18:36 2014 +0000 @@ -2,7 +2,6 @@ char StringBuffer[256]; - #define TEMPERATURE_FILTER_SIZE 16 float TemperatureFilterBuffer[TEMPERATURE_FILTER_SIZE] = {0}; @@ -31,9 +30,6 @@ InitTerminal(); //Initialize the Terminal State machine - // enable the usb uart rx fifo - // UART_PFIFO_REG(UART0) |= 0x08; - //Setup ouur ticker for 1mS SystemTicker.attach_us(SystemTick,1000); @@ -62,9 +58,9 @@ for(i=0;i<TEMPERATURE_FILTER_SIZE;i++) { - Temperature += ((TempSensor.read() * 3.3)// * //convert to volts - - 0.500) // subtract off 0c offset .... you may need to calibrate... see MCP9700A-E/TO data sheet - * 100; // Scale to Degrees C + Temperature += ((TempSensor.read() * 3.3f)// * //convert to volts + - 0.500f) // subtract off 0c offset .... you may need to calibrate... see MCP9700A-E/TO data sheet + * 100.0f; // Scale to Degrees C } Temperature = Temperature / TEMPERATURE_FILTER_SIZE;