The Code Repository for the REV0 Steering Wheel.

Dependencies:   CANBuffer KS0108_fork mbed-rtos mbed CAN Addresses

Fork of REVO_Updated_Steering by Penn Electric

Revision:
17:e97c889873e2
Parent:
16:d2953809fb31
Child:
18:674450a9d98d
diff -r d2953809fb31 -r e97c889873e2 Steering.h
--- a/Steering.h	Sat Oct 18 18:26:44 2014 +0000
+++ b/Steering.h	Sat Oct 25 15:59:51 2014 +0000
@@ -11,6 +11,8 @@
 #include "vivaldi16.h"
 #include "CANBuffer.h"
 
+#include "LPCDigitalIn.h"
+
 #define SWITCH_ID 410
 
 #define BATTERY_VOLTAGE_ID 0x304
@@ -53,16 +55,16 @@
 
 //SW1 - SW3
 LPCDigitalOut boSW1(p1_29,1);
-LPCDigitalOut biSWBR(p1_27,1);     //BRight
+LPCDigitalIn biSWBR(p1_27);     //BRight
 
 LPCDigitalOut boSW5(p1_25,1);
-LPCDigitalOut biSWBL(p1_22,1);     //BLeft
+LPCDigitalIn biSWBL(p1_22);     //BLeft
 
 LPCDigitalOut boSW10(p1_10,1);
-LPCDigitalOut biSWTR(p1_8,1);     //TRight
+LPCDigitalIn biSWTR(p1_8);     //TRight
 
 LPCDigitalOut boSW14(p1_1,1);
-LPCDigitalOut biSWTL(p0_25,1);    //TLeft
+LPCDigitalIn biSWTL(p0_25);    //TLeft
 
 typedef union convert{
         float FLOAT;