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.
Fork of T_motor by
Diff: T_motor.h
- Revision:
- 8:2759e619969a
- Parent:
- 1:5bd161b83ce0
- Child:
- 9:45748b44b89d
diff -r a1d54597161d -r 2759e619969a T_motor.h
--- a/T_motor.h Thu Sep 21 08:14:35 2017 +0000
+++ b/T_motor.h Wed Sep 27 10:28:52 2017 +0000
@@ -4,13 +4,12 @@
class T_motor
{
private:
- I2C i2c;
+ I2C *i2c;
char addr;
public:
void setAddr(int addr_);
void init(char addr,int freq);
- T_motor(PinName sda,PinName scl,int addr);
- T_motor(I2C& i2c_,int addr);
+ T_motor(I2C* i2c_,int addr);
T_motor& operator=(float fval);
void control(float fval);
bool run(char mode,char speed);
