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@0:91d31b26ae9e, 2015-07-02 (annotated)
- Committer:
- inst
- Date:
- Thu Jul 02 00:58:51 2015 +0000
- Revision:
- 0:91d31b26ae9e
- Child:
- 1:48028dcad4e2
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 | Robot( int numOfI2CDevice ); |
| inst | 0:91d31b26ae9e | 10 | ~Robot(); |
| inst | 0:91d31b26ae9e | 11 | void update(); |
| inst | 0:91d31b26ae9e | 12 | |
| inst | 0:91d31b26ae9e | 13 | protected: |
| inst | 0:91d31b26ae9e | 14 | I2CDevice** mI2CDevice; |
| inst | 0:91d31b26ae9e | 15 | const int mNumOfI2CDevice; |
| 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 |