All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bortbort.arduino.FiloFirmata.DigitalPinValue Maven / Gradle / Ivy

Go to download

FiloFirmata is a client library for the Firmata protocol used with hardware project boards.

There is a newer version: 0.1.11
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy