Wiki - Variables - Variable value

Block Variable value W.

Add the value 1 to the variable W.

Let's assign a new value to the W variable from the analog port A0.

Let's send the value of the W variable to the Port Monitor.

Sample program:

Download example: file.ardublock | Open Online ArduBlock

Video:

Components from Aliexpress

LED

Button

Resistor

Potentiometer

Arduino Pro Mini

Arduino Nano

Arduino Uno

Arduino Uno R3

Arduino Mega

Arduino Leonardo

Bread board

Training set