Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "mbed.h" 00002 #include "TextLCD.h" 00003 00004 TextLCD lcd(p15,p16,p17,p18,p19,p20); 00005 DigitalOut myled(LED1); 00006 Serial xbee1(p9, p10); 00007 00008 int main() { 00009 int data; 00010 // int prev; 00011 while(1) 00012 { 00013 myled = 1; 00014 if (xbee1.readable()) 00015 { 00016 xbee1.scanf(" %d", &data); 00017 myled = 0; 00018 // prev = data; 00019 wait(0.01); 00020 lcd.printf(" Pin: %d", data); 00021 wait(20); 00022 } 00023 lcd.cls(); 00024 } 00025 }
Generated on Tue Dec 13 2022 21:30:45 by
1.7.2