Task 5.2.3 Solution
Diff: main.cpp
- Revision:
- 3:134bd19c5f04
- Parent:
- 2:df9c87ac7704
--- a/main.cpp Mon Nov 12 14:14:47 2018 +0000 +++ b/main.cpp Fri Sep 20 13:39:27 2019 +0000 @@ -1,7 +1,11 @@ #include "mbed.h" //Global PWM object -PwmOut pwmRed(D6); +#ifdef TARGET_NUCLEO_F429ZI +PwmOut pwmRed(D6); //D7 is not a PWM output on the F429, so use D6 instead +#else +PwmOut pwmRed(D7); +#endif int T = 100; //100uS volatile int Tmark = 0; //0us