Home automation using Xbee radios
Dependencies: EthernetNetIf HTTPServer RPCInterface mbed C12832_lcd
XbeeCommLib.h@7:15cbbbe6105c, 2013-11-26 (annotated)
- Committer:
- chrisisthefish
- Date:
- Tue Nov 26 06:16:25 2013 +0000
- Revision:
- 7:15cbbbe6105c
Added initial code for Xbee communications.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chrisisthefish | 7:15cbbbe6105c | 1 | #include "mbed.h" |
chrisisthefish | 7:15cbbbe6105c | 2 | #include "PinDetect.h" |
chrisisthefish | 7:15cbbbe6105c | 3 | #include "C12832_lcd.h" |
chrisisthefish | 7:15cbbbe6105c | 4 | #include "LM75B.h" |
chrisisthefish | 7:15cbbbe6105c | 5 | |
chrisisthefish | 7:15cbbbe6105c | 6 | |
chrisisthefish | 7:15cbbbe6105c | 7 | extern unsigned char data[500]; |
chrisisthefish | 7:15cbbbe6105c | 8 | extern int dataCounter; |
chrisisthefish | 7:15cbbbe6105c | 9 | extern bool clear; |
chrisisthefish | 7:15cbbbe6105c | 10 | |
chrisisthefish | 7:15cbbbe6105c | 11 | extern DigitalOut led1; |
chrisisthefish | 7:15cbbbe6105c | 12 | extern DigitalOut led2; |
chrisisthefish | 7:15cbbbe6105c | 13 | extern DigitalOut led3; |
chrisisthefish | 7:15cbbbe6105c | 14 | extern DigitalOut led4; |
chrisisthefish | 7:15cbbbe6105c | 15 | |
chrisisthefish | 7:15cbbbe6105c | 16 | extern Serial xbee1; |
chrisisthefish | 7:15cbbbe6105c | 17 | extern C12832_LCD lcd; |
chrisisthefish | 7:15cbbbe6105c | 18 | extern LM75B sensor; |
chrisisthefish | 7:15cbbbe6105c | 19 | extern PwmOut green; |
chrisisthefish | 7:15cbbbe6105c | 20 | extern PwmOut blue; |
chrisisthefish | 7:15cbbbe6105c | 21 | extern PwmOut red; |
chrisisthefish | 7:15cbbbe6105c | 22 | |
chrisisthefish | 7:15cbbbe6105c | 23 | |
chrisisthefish | 7:15cbbbe6105c | 24 | float getAnalogVoltage(int analogInputIndex, int totalPacketBytes, int digitalSampleBytes); |
chrisisthefish | 7:15cbbbe6105c | 25 | |
chrisisthefish | 7:15cbbbe6105c | 26 | void digitalWriteXbee(unsigned int addrHigh, unsigned int addrLow, int outputIndex, bool value); |
chrisisthefish | 7:15cbbbe6105c | 27 | |
chrisisthefish | 7:15cbbbe6105c | 28 | void monitorXbee(); |