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: Output/Motor/Motor.h
- Revision:
- 8:cb53beff4bb2
- Parent:
- 4:42ba5ccc4a2a
--- a/Output/Motor/Motor.h Sat Jan 27 05:29:03 2018 +0000
+++ b/Output/Motor/Motor.h Sat Feb 24 07:32:11 2018 +0000
@@ -3,6 +3,7 @@
#include <stdint.h>
+//#define USE_MOTOR0_SENSOR
namespace MOTOR
{
#define FREE 0
@@ -39,6 +40,12 @@
#define MOTOR2_PWM_PIN D10
#define MOTOR3_PWM_PIN D11
#define MOTOR4_PWM_PIN A2
+
+ #ifdef USE_MOTOR0_SENSOR
+ #define MOTOR_START_NUM 1
+ #else
+ #define MOTOR_START_NUM 0
+ #endif
typedef struct
{