Hi,
Is the purpose of the READSTATE macro to simply allow us to test a "de-bounced" switch contact?
Wait until high
wait until low
I are straight forward.
Thanks
Ron
Readstate macro - switch component
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Hello Ron
This is taken from the Flowcode help file.
ReadState (BYTE WhichSwitch)
This macro reads the state of a single switch, specified by the BYTE parameter WhichSwitch. The macro returns a BYTE value of 0 if the switch is open or 1 if the switch is closed.
This is taken from the Flowcode help file.
ReadState (BYTE WhichSwitch)
This macro reads the state of a single switch, specified by the BYTE parameter WhichSwitch. The macro returns a BYTE value of 0 if the switch is open or 1 if the switch is closed.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Hi,
Sorry about that. I am so use to using HELP - Indexes so I can search, when I could not find anything via search I just automatically posted.
I will spend some time reading through the contents. It would be nice if there was a way to search from indexes through everything in the help file.
Just old habits I guess.......
Thanks
Ron
Sorry about that. I am so use to using HELP - Indexes so I can search, when I could not find anything via search I just automatically posted.
I will spend some time reading through the contents. It would be nice if there was a way to search from indexes through everything in the help file.
Just old habits I guess.......
Thanks
Ron