button1.Update();
Update onboard button status
Example
Use the uKit Explore v2 board, when the onboard button is clicked, the red light is on for 400ms; When double-clicked, the green light is on for 400ms, and when long-pressed, the blue light is on for 400ms. The light is off when button not pressed.
Last updated