David's dead reckoning code for the LVBots competition on March 6th. Uses the mbed LPC1768, DRV8835, QTR-3RC, and two DC motors with encoders.

Dependencies:   PololuEncoder Pacer mbed GeneralDebouncer

Revision:
11:bd14d512340a
Child:
16:8eaa5bc2bdb1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/buttons.cpp	Sat Feb 22 04:53:35 2014 +0000
@@ -0,0 +1,14 @@
+#include <mbed.h>
+#include "buttons.h"
+
+DigitalIn button1(p13);
+
+void buttonsInit()
+{
+    button1.mode(PullUp);
+}
+
+bool button1IsPressed()
+{
+    return button1.read() == 0;
+}
\ No newline at end of file