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: Arduino.h
- Revision:
- 0:d93ce07131fc
- Child:
- 1:d96590319bcf
diff -r 000000000000 -r d93ce07131fc Arduino.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Arduino.h Sat Apr 07 04:11:19 2018 +0000 @@ -0,0 +1,20 @@ +#ifndef ARDUINO +#define ARDUINO + +#include "mbed.h" + +class Arduino { +public: + Arduino(PinName tx, PinName rx); + int getLdrY(); + int getLdrX(); + int getColor(); + int getOrientation(); + +private: + Serial _arduino(_tx, _rx); + void _sendCommand(); + int _receiveData(); +}; + +#endif \ No newline at end of file