Button on FlowCode 10
-
Zhmil1789
- Posts: 6
- http://meble-kuchenne.info.pl
- Joined: Sun Mar 01, 2026 6:50 pm
- Has thanked: 6 times
Button on FlowCode 10
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.
- Attachments
-
- button_pico.fcfx
- (9.96 KiB) Downloaded 37 times
-
LeighM
- Valued Contributor
- Posts: 542
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 99 times
- Been thanked: 299 times
Re: Button on FlowCode 10
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?
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?