University of Plymouth - Stages 1, 2 and 3
/
Task341Solution
Task 3.4.1 Solution
Fork of Task341Solution by
Diff: main.cpp
- Revision:
- 2:3d313447620d
- Parent:
- 0:9de80b65dfc5
--- a/main.cpp Thu Jul 13 14:50:14 2017 +0000 +++ b/main.cpp Wed Sep 18 12:04:05 2019 +0000 @@ -1,8 +1,17 @@ #include "mbed.h" +#ifdef TARGET_NUCLEO_F429ZI +//#define ONBOARD +#endif + +#ifdef ONBOARD +BusOut binaryOutput(LED1, LED2, LED3); +DigitalIn SW1(USER_BUTTON); +#else //Global objects BusOut binaryOutput(D5, D6, D7); DigitalIn SW1(D4); +#endif //Function prototypes void waitForButtonPress();