Question: So I cant figure this code out without my board being buggy, the following turns the led on and off whith the my button but

So I cant figure this code out without my board being buggy, the following turns the led on and off whith the my button but when you hold done the button it blinks! why is it doing that and how do I alter the code to make it operate the same but without the blinking while myButton is held down?

So I cant figure this code out without my board being buggy,

DigitalOut myLed(LED1); Digitalln myButton(USER_BUTTON); int main0 t if (myButton-l){ l/button is pressed wait (0.1); if (myButton-1) myLed ! myLed; 6- Compile the program, download it to the board, and run it. 7- Press the blue button on the board to turn the LED on, and press it again to turn the LED off

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!