pins.digitalWritePin(DigitalPin.P1, 1) in arduino code code example Example: digitalwrite C++ digitalWrite(pin, value)