public void digitalWrite(int pin, int val) { int tempValue = Arduino.HIGH; if (val == 0) tempValue = Arduino.LOW; a.digitalWrite(pin, tempValue); }