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: Robot.h
- Revision:
- 0:91d31b26ae9e
- Child:
- 1:48028dcad4e2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Robot.h Thu Jul 02 00:58:51 2015 +0000
@@ -0,0 +1,23 @@
+#ifndef INCLUDED_ROBOT_H
+#define INCLUDED_ROBOT_H
+
+#include "mbed.h"
+class I2CDevice;
+
+class Robot{
+public:
+ Robot( int numOfI2CDevice );
+ ~Robot();
+ void update();
+
+protected:
+ I2CDevice** mI2CDevice;
+ const int mNumOfI2CDevice;
+private:
+ virtual void updateAction() = 0;
+
+ void readI2CDevice();
+ void writeI2CDevice();
+};
+
+#endif