
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
Diff: GLUE/IO.h
- Revision:
- 0:29f58b9daa2c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GLUE/IO.h Fri Jul 04 22:55:47 2014 +0000 @@ -0,0 +1,28 @@ +#include "System.h" +#include "EthernetInterface.h" + +#ifndef _IO_H +#define _IO_H + + +extern DigitalOut SSR_HIGH_CURRENT_1; +extern DigitalOut SSR_HIGH_CURRENT_2; + +extern DigitalOut SSR_LOW_CURRENT_1; +extern DigitalOut SSR_LOW_CURRENT_2; + +extern AnalogIn TempSensor; + +#define ENABLE_HIGH_CURRENT_RELAY SSR_HIGH_CURRENT_1 = 1; SSR_HIGH_CURRENT_2 = 1; +#define DISABLE_HIGH_CURRENT_RELAY SSR_HIGH_CURRENT_1 = 0; SSR_HIGH_CURRENT_2 = 0; + +#define ENABLE_LOW_CURRENT_RELAY SSR_LOW_CURRENT_1 = 1; SSR_LOW_CURRENT_2 = 1; +#define DISABLE_LOW_CURRENT_RELAY SSR_LOW_CURRENT_1 = 0; SSR_LOW_CURRENT_2 = 0; + + +extern Serial PC; + +extern EthernetInterface eth; + + +#endif \ No newline at end of file