Skip to content

pin number (pinout)

What it does: Returns the number of the selected GPIO pin as a value that you can plug into other blocks.

pinout

Inputs

  • no data inputs.
  • You select the pin in the PIN block field.

Output

  • pin number (Number).

When to use it

  • When you want to use the same pin repeatedly in different blocks.
  • When you need to have a pin as a separate value in the program.

Tips and pitfalls

  • Use pins that are safe for the board and boot mode.
  • Do not combine one pin simultaneously for multiple peripherals without a clear intention.

Generated Python example

22