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.
Dependencies: CANBuffer KS0108_fork mbed-rtos mbed CAN Addresses
Fork of REVO_Updated_Steering by
Revision 17:e97c889873e2, committed 2014-10-25
- Comitter:
- palimar
- Date:
- Sat Oct 25 15:59:51 2014 +0000
- Parent:
- 16:d2953809fb31
- Child:
- 18:674450a9d98d
- Commit message:
- swapped digital out for digital in
Changed in this revision
| LPCDigitalIn.lib | Show annotated file Show diff for this revision Revisions of this file |
| Steering.h | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LPCDigitalIn.lib Sat Oct 25 15:59:51 2014 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/teams/Penn-Electric-Racing/code/LPCDigitalIn/#963ce3b85931
--- 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;
