Microduino

Dependencies:   mbed

Fork of BalanceCar by Li Weiyi

Revision:
2:99785a1007a4
Parent:
0:a4d8f5b3c546
--- a/Microduino_Stepper.h	Sat Jun 04 04:06:36 2016 +0000
+++ b/Microduino_Stepper.h	Tue Jun 07 05:26:03 2016 +0000
@@ -2,12 +2,12 @@
 //
 // Copyright (C) 2009-2013 Shenyang
 // $Id: Microduino_Stepper.cpp,v 1.00 2016/04/07 $
-
+#if 0
 #ifndef __MICRODUINO_STEPPER_H__
 #define __MICRODUINO_STEPPER_H__
 
+//#include "MicroduinoPinNames.h"
 #include "mbed.h"
-#include "MicroduinoPinNames.h"
 #include <stdlib.h>
 //#include <Arduino.h>
 
@@ -32,7 +32,7 @@
 #define PIN_STEPC 	7   //PORTB,3
 #define PIN_DIRD 	A3    //PORTA,4
 #define PIN_STEPD 	8   //PORTD,6
-#else
+#elif 0
 #define PIN_EN  	D4
 #define PIN_DIRA 	A0
 #define PIN_STEPA 	D5
@@ -42,6 +42,16 @@
 #define PIN_STEPC 	D7
 #define PIN_DIRD 	A3
 #define PIN_STEPD 	D8
+#else
+#define PIN_EN  	P0_25
+#define PIN_DIRA 	P0_7
+#define PIN_STEPA 	P0_24
+#define PIN_DIRB 	P0_6
+#define PIN_STEPB 	P0_1
+#define PIN_DIRC 	P0_14
+#define PIN_STEPC 	P0_20
+#define PIN_DIRD 	P0_23
+#define PIN_STEPD 	P0_19
 #endif
 
 #define DEFAULT_ACCEL 120
@@ -88,3 +98,4 @@
 } Stepper_t;
 
 #endif
+#endif
\ No newline at end of file