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.
Dependents: experiment_example motor_shield_example Position_ctrl Lab3_experiment_example ... more
Diff: MotorShield.h
- Revision:
- 7:e3a2ade56b79
- Parent:
- 5:d2dffc88e94d
--- a/MotorShield.h Wed Aug 26 19:35:02 2020 +0000
+++ b/MotorShield.h Wed Aug 26 23:42:07 2020 +0000
@@ -14,6 +14,10 @@
void motorBWrite(float duty_cycle, int direction);
void motorCWrite(float duty_cycle, int direction);
void motorDWrite(float duty_cycle, int direction);
+ uint32_t readCurrentA();
+ uint32_t readCurrentB();
+ uint32_t readCurrentC();
+ uint32_t readCurrentD();
void changePeriod(int periodTicks);
private: