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.
Diff: Android.h
- Revision:
- 3:36ff03cb6bab
- Parent:
- 2:aeecb6277fc7
- Child:
- 4:5f1af832e593
--- a/Android.h Tue Jan 09 20:07:04 2018 +0000
+++ b/Android.h Sat Jan 13 18:53:38 2018 +0000
@@ -8,22 +8,21 @@
#include "mbed.h"
#include<string>
#include "Carousel.h"
-#include "MODSERIAL.h"
class Android {
public:
Android (PinName txPin, PinName rxPin, Carousel& carousel);
private:
- MODSERIAL serial;
+ Serial serial;
+ Thread serialReadThread;
void onData(void);
void hearthBeat(void);
Ticker ticker;
+ Ticker tickerReadSerial;
DigitalOut myled;
Carousel& carousel;
void sendToAndroid(string message);
- void processMessageBuffer();
- void executeCommands();
- void onMessage(MODSERIAL_IRQ_INFO *q);
+ int readNumber();
};
#endif /* ANDROID_H */