PIGPIO Library Installation

Hello Eugene! I wanted to ask how I can make the Hbridges work with regular buttons. I am making it work. But once I press forward, it only goes forward. I try to press stop, and it stops for 1 second. Same thing with reverse. Do I have to add some timer?

This is the code for Forward:

The code looks the same for stop and Reverse just with different High and lows ofc.

image

This is the Idea.

Also, ended up making the two Hbridges work perfectly. Now, I am making changes to the app so the buttons look like this. But now it is different.