Page 1 of 1

Button on FlowCode 10

Posted: Thu Apr 30, 2026 6:20 am
by Zhmil1789
Good day. First of all, I’d like to thank you for your advice regarding the A4988. I’d like to ask for your help—I needed to connect a button using the algorithm I’ve attached. In this algorithm, when the button is pressed, the LED should turn on and flash, but the button isn’t being recognized on either the PICO board or the ESP board. The pins and connections were correct, and I’m sure I made a few mistakes somewhere, so I’m asking for your help in figuring this out.

Re: Button on FlowCode 10

Posted: Thu Apr 30, 2026 9:06 am
by LeighM
Your program looks OK.

But we need to check that:
a) the program is compiling OK on your machine,
b) The device is being programmed correctly.

The Flowcode Compiler Messages window will give you the answers to those questions.
This output is also saved to the file button_pico.msg.txt
So it would help if you could attach this file to your post.

If the compile and download to device are OK, then I would next suggest that you add a LED flash to the start of your program. If this works it will check that the device is indeed programmed correctly and that the LED connection is correct.

Next would be to diagnose the switch. You have this as active high, so is the switch connected to the device positive supply rail, and does the input have a pull down resistor?