Pins

Use the pins for digital and analog signals.

Digital

pins.digitalRead(DigitalPin.D0)
pins.digitalWrite(DigitalPin.D0, 0)
pins.pinMode(DigitalPin.D0, PinMode.Input)

Analog

pins.analogRead(AnalogPin.A0)
pins.analogWrite(AnalogPin.A0, 255)
pins.analogPinMode(AnalogPin.A0, PinMode.Input)

See also

digital read, digital write, pin mode, digital read, digital write, analog pin mode