Question: Question 3 What is this program controlling? Elaborate on your answer. #include mbed.h PwmOut PWM1 (p25); AnalogIn Ain (p15); int main() { PWM1.period (0.005); while(1)
Question 3 What is this program controlling? Elaborate on your answer. #include "mbed.h" PwmOut PWM1 (p25); AnalogIn Ain (p15); int main() { PWM1.period (0.005); while(1) { PWM1=Ain; wait (0.1); Question 4 Find and correct the errors in the code below: #include "mbed" Digital Out myled (LED); int man() { white (1) { myled = 1; wait(0.2) myledi = 0; wait(0.2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
