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.
Robot.h@2:0d9bb8e1876b, 2015-10-14 (annotated)
- Committer:
- inst
- Date:
- Wed Oct 14 03:50:52 2015 +0000
- Revision:
- 2:0d9bb8e1876b
- Parent:
- 1:48028dcad4e2
- Child:
- 3:4dbbd511a49d
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| inst | 0:91d31b26ae9e | 1 | #ifndef INCLUDED_ROBOT_H |
| inst | 0:91d31b26ae9e | 2 | #define INCLUDED_ROBOT_H |
| inst | 0:91d31b26ae9e | 3 | |
| inst | 0:91d31b26ae9e | 4 | #include "mbed.h" |
| inst | 0:91d31b26ae9e | 5 | class I2CDevice; |
| inst | 0:91d31b26ae9e | 6 | |
| inst | 0:91d31b26ae9e | 7 | class Robot{ |
| inst | 0:91d31b26ae9e | 8 | public: |
| inst | 0:91d31b26ae9e | 9 | void update(); |
| inst | 0:91d31b26ae9e | 10 | |
| inst | 2:0d9bb8e1876b | 11 | static const int mNumOfI2CDevice; |
| inst | 2:0d9bb8e1876b | 12 | |
| inst | 0:91d31b26ae9e | 13 | protected: |
| inst | 0:91d31b26ae9e | 14 | I2CDevice** mI2CDevice; |
| inst | 2:0d9bb8e1876b | 15 | |
| inst | 0:91d31b26ae9e | 16 | private: |
| inst | 0:91d31b26ae9e | 17 | virtual void updateAction() = 0; |
| inst | 0:91d31b26ae9e | 18 | |
| inst | 0:91d31b26ae9e | 19 | void readI2CDevice(); |
| inst | 0:91d31b26ae9e | 20 | void writeI2CDevice(); |
| inst | 0:91d31b26ae9e | 21 | }; |
| inst | 0:91d31b26ae9e | 22 | |
| inst | 0:91d31b26ae9e | 23 | #endif |