Switch function don't work in Flowcode
Posted: Tue Dec 05, 2023 9:50 am
Hi there,
I have made a counter program with a Graphical LCD on I2C.
The start works Oke and it's counting.
I have made a menu to make some settings.
When I press the button (switch_push_button2) the menu shows.
From this point on, all 3 buttons don't work anymore.
I first made a version with a 7-segment display instead.
Here, all buttons worked oke, but the display doesn't work very well.
It has 3 digits and the last digit works oke but the first two have a very low intensity.
I can't get it better, so the newer version has graphical display instead.
The problem is with the flowcode "Menu instellen" (menu settings)
The display is cleared and written with "Leeg:" (empty) and a number.
Than I use the ReadState function of Switch_Push_Button1
This doesn't work, the flowchart stops here.
I have also tried it with the INPUT function instead, same result.
I have also tried it without the Interupt Disable function in the top of the listing.
Also no result.
I assume that it is a setting or type-mismatch or anything like that.
However, I can't find it.
Does anybody has a tip or suggestion?
Please let me know.
I have made a counter program with a Graphical LCD on I2C.
The start works Oke and it's counting.
I have made a menu to make some settings.
When I press the button (switch_push_button2) the menu shows.
From this point on, all 3 buttons don't work anymore.
I first made a version with a 7-segment display instead.
Here, all buttons worked oke, but the display doesn't work very well.
It has 3 digits and the last digit works oke but the first two have a very low intensity.
I can't get it better, so the newer version has graphical display instead.
The problem is with the flowcode "Menu instellen" (menu settings)
The display is cleared and written with "Leeg:" (empty) and a number.
Than I use the ReadState function of Switch_Push_Button1
This doesn't work, the flowchart stops here.
I have also tried it with the INPUT function instead, same result.
I have also tried it without the Interupt Disable function in the top of the listing.
Also no result.
I assume that it is a setting or type-mismatch or anything like that.
However, I can't find it.
Does anybody has a tip or suggestion?
Please let me know.