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.
Arduino.h@1:d96590319bcf, 2018-04-07 (annotated)
- Committer:
- sangrit
- Date:
- Sat Apr 07 07:40:13 2018 +0000
- Revision:
- 1:d96590319bcf
- Parent:
- 0:d93ce07131fc
Arduino
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ruke1ire | 0:d93ce07131fc | 1 | #ifndef ARDUINO |
ruke1ire | 0:d93ce07131fc | 2 | #define ARDUINO |
ruke1ire | 0:d93ce07131fc | 3 | |
ruke1ire | 0:d93ce07131fc | 4 | #include "mbed.h" |
ruke1ire | 0:d93ce07131fc | 5 | |
ruke1ire | 0:d93ce07131fc | 6 | class Arduino { |
ruke1ire | 0:d93ce07131fc | 7 | public: |
ruke1ire | 0:d93ce07131fc | 8 | Arduino(PinName tx, PinName rx); |
ruke1ire | 0:d93ce07131fc | 9 | int getLdrY(); |
ruke1ire | 0:d93ce07131fc | 10 | int getLdrX(); |
ruke1ire | 0:d93ce07131fc | 11 | int getColor(); |
ruke1ire | 0:d93ce07131fc | 12 | int getOrientation(); |
ruke1ire | 0:d93ce07131fc | 13 | |
sangrit | 1:d96590319bcf | 14 | void sendCommand(char com); |
sangrit | 1:d96590319bcf | 15 | |
ruke1ire | 0:d93ce07131fc | 16 | private: |
sangrit | 1:d96590319bcf | 17 | int receiveData(); |
sangrit | 1:d96590319bcf | 18 | Serial _arduino; |
sangrit | 1:d96590319bcf | 19 | |
ruke1ire | 0:d93ce07131fc | 20 | }; |
ruke1ire | 0:d93ce07131fc | 21 | |
ruke1ire | 0:d93ce07131fc | 22 | #endif |