Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For Propeller objects, quite often it is necessary to monitor a single pin whose pin number is specified outside the object itself. An easy way to translate that pin number into the proper 32-bit State and Mask value is by using the Bitwise Decode operator "|<" (see   Bitwise Decode '|<' for more information). For example, if the pin number was specified by the variable Pin, and we needed to wait until that pin is high, we could use the following code:

...