IoT Command Reference
The following commands are used in your AppShed App to control the AppShed Board.
app.getPin(n) - This will return the value of pin n (n being the pin number, 0 to 39)
app.setPin(n,val) x - Set the value of pin "n" to the value "val". For digital pins, val should be 0 or 1. For analog pins, val can be 0-1024.
app.analogRead(n) x - Returns the value of analog pin n.