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.
motorDriver.h
00001 #ifndef MBED_MOTORDRIVER_H 00002 #define MBED_MOTORDRIVER_H 00003 #include "mbed.h" 00004 #define REQUESTPOSITIONADDR 0x40 00005 #define READBUFFSIZE 3 //reading buffer size 00006 00007 class motorDriver{ 00008 public: 00009 motorDriver(char slaveAddress); 00010 int actualPosition(); 00011 private: 00012 char addressConverter(char sevenBitAddress); 00013 int charArrayToInt(char *array, int size); 00014 void requestData(char addr, char requestedData ,char *buff, int size); 00015 char _i2cAddr; 00016 char _readBuffer[READBUFFSIZE]; 00017 }
Generated on Sun Jul 17 2022 19:38:16 by
1.7.2