asdf
Dependencies: L3GD20 LSM303DLHC mbed
Communication.h
00001 #ifndef COMMUNICATION_H 00002 #define COMMUNICATION_H 00003 00004 //#include "Core.h" 00005 00006 class CommunicationInterface : public Serial { 00007 public: 00008 00009 explicit CommunicationInterface(PinName a, PinName b) : Serial(a, b) {} 00010 00011 char getChar() 00012 { 00013 if(readable()) { 00014 return getc(); 00015 } 00016 00017 return (char)0; 00018 } 00019 }; 00020 00021 typedef CommunicationInterface ComInterface; 00022 00023 //ComInterface WIRELESS(p9, p10); 00024 //ComInterface PC(USBTX, USBRX); // tx, rx 00025 Serial PC(USBTX, USBRX); 00026 Serial WIRELESS(p9, p10); 00027 #endif
Generated on Tue Jul 12 2022 19:34:20 by 1.7.2