Contains code to drive a small stepper motor with a Freescale h-bridge driver evaluation board, and a Freedom FRDM-KL25Z

Dependencies:   USBDevice mbed

Fork of LVHB Stepper Motor Drive by Freescale

Files at this revision

API Documentation at this revision

Comitter:
bdbohn
Date:
Fri Mar 10 23:49:20 2017 +0000
Parent:
1:2c8685757654
Commit message:
Fixed Error

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Mar 10 23:27:05 2017 +0000
+++ b/main.cpp	Fri Mar 10 23:49:20 2017 +0000
@@ -63,10 +63,10 @@
 DigitalOut blue_led(LED3);
 
 //Input pins on Eval Board
-DigitalOut IN1A(PTD4);          // Pin IN1A input to EVAL board (FRDM PIN Name)
-DigitalOut IN1B(PTA12);         // Pin IN1B input to EVAL board (FRDM PIN Name)
-DigitalOut IN2A(PTA4);          // Pin IN2A input to EVAL board (FRDM PIN Name)
-DigitalOut IN2B(PTA5);          // Pin IN2B input to EVAL board (FRDM PIN Name)
+DigitalOut IN1A(PTA5);          // Pin IN1A input to EVAL board (FRDM PIN Name)
+DigitalOut IN1B(PTC8);         // Pin IN1B input to EVAL board (FRDM PIN Name)
+DigitalOut IN2A(PTA13);          // Pin IN2A input to EVAL board (FRDM PIN Name)
+DigitalOut IN2B(PTD5);          // Pin IN2B input to EVAL board (FRDM PIN Name)
 
 //Green LED on Eval Board
 // DigitalOut READY(PTC5);         // Pin READY input to EVAL board (FRDM PIN Name)