Harriet Noons
/
wifireceive
wifi receive code
main.cpp
- Committer:
- hnoons
- Date:
- 2013-05-02
- Revision:
- 0:644275e48645
File content as of revision 0:644275e48645:
#include "mbed.h" #include "TextLCD.h" Serial xbee1(p9, p10); DigitalOut rst1(p11); DigitalOut myled(LED1); DigitalOut myled2(LED2); TextLCD lcd(p15, p16, p17, p18, p19, p20); int main() { rst1 = 0; //Set reset pin to 0 myled = 0; myled2= 0; wait_ms(1); rst1 = 1; //Set reset pin to 1 wait_ms(1); lcd.printf("starting\n"); wait(2); lcd.cls(); while (1) { if(xbee1.readable()){ char a = xbee1.getc(); lcd.printf("%d", a); } } }