com.bortbort.arduino.FiloFirmata.DigitalPinValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of filo-firmata Show documentation
Show all versions of filo-firmata Show documentation
FiloFirmata is a client library for the Firmata protocol used with hardware project boards.
package com.bortbort.arduino.FiloFirmata;
/**
* Digital Pin Values
* Simple ENUM defining the logic behind a digital communications rail.
*/
public enum DigitalPinValue {
LOW (0x00), // Digital Low
HIGH (0x01); // Digital High
private byte byteValue;
DigitalPinValue(int byteValue) {
this.byteValue = (byte) byteValue;
}
/**
* Get Byte Value
* @return Byte representing the digital logic pin value.
*/
public Byte getByteValue() {
return byteValue;
}
}