University of Plymouth - Stages 1, 2 and 3
/
Task343Solution
Task 3.4.3 Solution
Fork of Task343Solution by
Diff: main.cpp
- Revision:
- 2:1e53c842f790
- Parent:
- 0:807cc79e50f0
--- a/main.cpp Thu Jul 13 14:50:58 2017 +0000 +++ b/main.cpp Wed Sep 18 12:14:02 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();