We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec406b1 commit dbcfedcCopy full SHA for dbcfedc
libraries/tests/mbed/pwm/main.cpp
@@ -48,6 +48,16 @@ int main() {
48
printf("Initialize PWM on pin 24 with duty cycle: %.2f\n", pwm_dp24.read());
49
printf("Initialize PWM on pin 18 with duty cycle: %.2f\n", pwm_dp18.read());
50
51
+#elif defined(TARGET_LPC1347)
52
+ PwmOut pwm_1(P0_18);
53
+ PwmOut pwm_2(P0_9);
54
+
55
+ pwm_1.write(0.75);
56
+ pwm_2.write(0.50);
57
58
+ printf("Initialize PWM on P0_18 with duty cycle: %.2f\n", pwm_1.read());
59
+ printf("Initialize PWM on P0_9 with duty cycle: %.2f\n", pwm_2.read());
60
61
#elif defined(TARGET_NRF51822)
62
PwmOut pwm_p24(p24);
63
PwmOut pwm_p25(p25);
0 commit comments