Task 5.2.3 Solution

Revision:
2:1261bfd4b52d
Parent:
0:f3eff68b603f
--- a/main.cpp	Thu Jul 13 14:56:25 2017 +0000
+++ b/main.cpp	Fri Sep 20 13:43:13 2019 +0000
@@ -1,7 +1,11 @@
 #include "mbed.h"
 
 //Global PWM object
+#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