Skip to main content

Core IO

These are the foundational blocks for reading and controlling pins. They cover the most common Arduino input and output tasks.

Set pin state

Set a digital pin to HIGH or LOW.

Set PWM pin state

Set a PWM-capable pin to a value between 0 and 255.

Read digital pin state

Read whether a digital pin is currently HIGH or LOW.

Read analogue pin value

Read the analogue value from a compatible input pin.

Set state of built-in LED

Set the state of the board's built-in LED without choosing a pin manually.

Tone on pin

Generate a square-wave tone on a chosen pin. This is useful for buzzers and simple audio feedback.

Stop tone on pin

Stop a tone that was started with the tone block.