University of Plymouth - Stages 1, 2 and 3 / Mbed OS Task341

Fork of Task341 by Nicholas Outram

Revision:
2:bea5a01bd4d8
Parent:
0:08f1d029d089
diff -r bcafc833577d -r bea5a01bd4d8 main.cpp
--- a/main.cpp	Thu Jul 13 14:50:03 2017 +0000
+++ b/main.cpp	Wed Sep 18 12:01:28 2019 +0000
@@ -1,8 +1,19 @@
 #include "mbed.h"
 
+#ifdef TARGET_NUCLEO_F429ZI
+//#define ONBOARD
+#endif
+
+#ifdef ONBOARD
+BusOut binaryOutput(LED1, LED2, LED3);
+DigitalIn SW1(USER_BUTTON);
+#else
+//lsb first
 //Global objects
 BusOut binaryOutput(D5, D6, D7);
 DigitalIn SW1(D4);
+#endif
+
 
 //Function prototypes
 void waitForButtonPress();