Package jpigpio.impl

Class CommonPigpio

java.lang.Object
jpigpio.impl.CommonPigpio
All Implemented Interfaces:
JPigpio
Direct Known Subclasses:
Pigpio, PigpioSocket

public abstract class CommonPigpio
extends java.lang.Object
implements JPigpio
  • Constructor Details

  • Method Details

    • gpioShiftOut

      public void gpioShiftOut​(int gpioData, int gpioClock, boolean bitOrder, byte value) throws PigpioException
      Shift out a byte of data to a given pin. Note that this function is implemented in Javacode.
      Specified by:
      gpioShiftOut in interface JPigpio
      Parameters:
      gpioData - The gpio to which to write the data.
      gpioClock - The clock gpio to pulse. The clock level is high.
      bitOrder - The order of the bits
      value - The value of the byte to write.
      Throws:
      PigpioException - on pigpiod error
    • gpioShiftOut

      public void gpioShiftOut​(GPIO gpioData, GPIO gpioClock, boolean bitOrder, byte value) throws PigpioException
      Specified by:
      gpioShiftOut in interface JPigpio
      Throws:
      PigpioException
    • gpioShiftOut

      public void gpioShiftOut​(int gpioData, int gpioClock, boolean clockLevel, boolean bitOrder, byte value) throws PigpioException
      Shift out a byte of data to a given pin. Note that this function is implemented in Javacode.
      Specified by:
      gpioShiftOut in interface JPigpio
      Parameters:
      gpioData - The gpio to which to write the data.
      gpioClock - The clock gpio to pulse.
      clockLevel - The value of the clock pulse
      bitOrder - The order of the bits
      value - The value of the byte to write.
      Throws:
      PigpioException - on pigpiod error
    • gpioShiftOut

      public void gpioShiftOut​(GPIO gpioData, GPIO gpioClock, boolean clockLevel, boolean bitOrder, byte value) throws PigpioException
      Specified by:
      gpioShiftOut in interface JPigpio
      Throws:
      PigpioException
    • gpioDelay

      public void gpioDelay​(long delay, int type) throws PigpioException
      Specified by:
      gpioDelay in interface JPigpio
      Throws:
      PigpioException