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.
Android.h@2:aeecb6277fc7, 2018-01-09 (annotated)
- Committer:
- maskas
- Date:
- Tue Jan 09 20:07:04 2018 +0000
- Revision:
- 2:aeecb6277fc7
- Parent:
- 1:6d9353593c3c
- Child:
- 3:36ff03cb6bab
new serial
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| maskas | 0:9b41a36d03d9 | 1 | |
| maskas | 0:9b41a36d03d9 | 2 | #ifndef ANDROID_H | 
| maskas | 0:9b41a36d03d9 | 3 | #define ANDROID_H | 
| maskas | 0:9b41a36d03d9 | 4 | |
| maskas | 0:9b41a36d03d9 | 5 | /** | 
| maskas | 0:9b41a36d03d9 | 6 | * Includes | 
| maskas | 0:9b41a36d03d9 | 7 | */ | 
| maskas | 0:9b41a36d03d9 | 8 | #include "mbed.h" | 
| maskas | 2:aeecb6277fc7 | 9 | #include<string> | 
| maskas | 1:6d9353593c3c | 10 | #include "Carousel.h" | 
| maskas | 2:aeecb6277fc7 | 11 | #include "MODSERIAL.h" | 
| maskas | 0:9b41a36d03d9 | 12 | |
| maskas | 0:9b41a36d03d9 | 13 | class Android { | 
| maskas | 0:9b41a36d03d9 | 14 | public: | 
| maskas | 0:9b41a36d03d9 | 15 | |
| maskas | 1:6d9353593c3c | 16 | Android (PinName txPin, PinName rxPin, Carousel& carousel); | 
| maskas | 0:9b41a36d03d9 | 17 | private: | 
| maskas | 2:aeecb6277fc7 | 18 | MODSERIAL serial; | 
| maskas | 0:9b41a36d03d9 | 19 | void onData(void); | 
| maskas | 0:9b41a36d03d9 | 20 | void hearthBeat(void); | 
| maskas | 0:9b41a36d03d9 | 21 | Ticker ticker; | 
| maskas | 0:9b41a36d03d9 | 22 | DigitalOut myled; | 
| maskas | 1:6d9353593c3c | 23 | Carousel& carousel; | 
| maskas | 2:aeecb6277fc7 | 24 | void sendToAndroid(string message); | 
| maskas | 2:aeecb6277fc7 | 25 | void processMessageBuffer(); | 
| maskas | 2:aeecb6277fc7 | 26 | void executeCommands(); | 
| maskas | 2:aeecb6277fc7 | 27 | void onMessage(MODSERIAL_IRQ_INFO *q); | 
| maskas | 0:9b41a36d03d9 | 28 | }; | 
| maskas | 0:9b41a36d03d9 | 29 | #endif /* ANDROID_H */ |