BlocklyProp blocks for interacting with the Propeller I/O pins available from the S3 Hacker Port.
make PIN
The make PIN block sets the function and state of a Hacker Port digital I/O pin.
Select a Hacker Port digital I/O pin, P0 to P5.
Set the function and state with the second drop-down:
- High sets the pin to output +3.3V.
- Low connects the pin as an output to Ground.
- Toggle would set the pin to a high output if it were Low or to a Low output if it was High.
- Input sets the pin as an input, which allows the Propeller to read the high or low voltage applied to the pin, and block current from going in or coming out of the pin.
- Reverse sets the pin to an input if it was output, or sets the pin to an output if it was input.
check PIN
The check PIN block returns a 1 if the digital I/O pin selected is high and returns a 0 (zero) if the pin is low. It is used to read the pin as an input or to check what it was set to previously as an output.
check analog PIN
The check analog PIN block returns the voltage (in volt-100ths) sensed by the specified analog Hacker Port I/O pin (A0 or A1)