Readstate macro - switch component

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Ron
Posts: 225
Joined: Wed Apr 11, 2007 6:15 pm
Has thanked: 2 times

Readstate macro - switch component

Post by Ron »

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

User avatar
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:

Post by Benj »

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.

Ron
Posts: 225
Joined: Wed Apr 11, 2007 6:15 pm
Has thanked: 2 times

Post by Ron »

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

Post Reply