Lab 6 code.

Dependencies:   mbed

Fork of WaG by GroupA

Revision:
18:0e281922212c
Child:
19:ad514b1dd53f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stepper.h	Fri Mar 02 22:18:47 2018 +0000
@@ -0,0 +1,34 @@
+/******************************************************************************
+* EECS 397
+*
+* Assignment Name: Lab 5: WaG
+* 
+* Authors: Sam Morrison and Phong Nguyen 
+* File name: stepper.h
+* Purpose: Header for stepper driver
+*
+* Created: 03/02/2018
+* Last Modified: 03/02/2018
+*
+******************************************************************************/
+
+#ifndef STEPPER_H
+#define STEPPER_H
+
+#define DRV8806_SPI_NO_BITS 8
+#define DRV8806_SPI_MODE 0
+#define DRV8806_SPI_FREQ 1000000
+#define STP_CW 0
+#define STP_CW 1
+#define STP_POS_UNKN -5
+#define NUM_SENSORS 8
+
+
+#include "mbed.h"
+#include "io_pins.h"
+
+void stp_init();
+void stp_step(int direction);
+
+
+#endif 
\ No newline at end of file