This example explains how to connect single LED and how control it with buttons inside app. First of all connect LED with 220 ohm resistor to pin 5.
Make sure that Involt is installed. If you don't know how to do this go to getting started page.
Add code to body section of app.html to generate switch between HIGH and LOW states of pin (or 0-1).
Now add digitalWrite to void loop and pinMode (pinMode is required for digitalWrite to work correctly) to void setup inside Involt Arduino sketch (in Arduino folder). The value received from App is stored in involtPin array with index which represents the target pin.
There are other similar ways to do this, in this case use PWM values. Instead of digitalWrite use analogWrite in your sketch:
There are more sophisticated elements. One of them is rangeslider. It will change the brightness of connected LED.
Each dynamic UI element has its default settings (based on PWM and analog read resolution) so in this case, the same element can be defined without parameteres: