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.
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();