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
- Committer:
- maskas
- Date:
- 2018-01-13
- Revision:
- 3:36ff03cb6bab
- Parent:
- 2:aeecb6277fc7
- Child:
- 4:5f1af832e593
File content as of revision 3:36ff03cb6bab:
#ifndef ANDROID_H
#define ANDROID_H
/**
* Includes
*/
#include "mbed.h"
#include<string>
#include "Carousel.h"
class Android {
public:
Android (PinName txPin, PinName rxPin, Carousel& carousel);
private:
Serial serial;
Thread serialReadThread;
void onData(void);
void hearthBeat(void);
Ticker ticker;
Ticker tickerReadSerial;
DigitalOut myled;
Carousel& carousel;
void sendToAndroid(string message);
int readNumber();
};
#endif /* ANDROID_H */