Class AdafruitSeeSaw
-
- All Implemented Interfaces:
-
com.diozero.api.DeviceInterface
,java.lang.AutoCloseable
public class AdafruitSeeSaw implements DeviceInterface
An I2C to whatever helper chip. Note that this chip does not use "normal" I2C registers, but rather selects "registry" locations with write before read.
Based on the Adafruit CircuitPython library and the Arduino library
See Using the SeeSaw
The flow-control device is available, but typically not used.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
AdafruitSeeSaw.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static Byte
STATUS_BASE
public final static Integer
SERCOM0_BASE
public final static Integer
DAC_BASE
public final static Integer
INTERRUPT_BASE
public final static Integer
DAP_BASE
public final static Integer
EEPROM_BASE
public final static Byte
NEOPIXEL_BASE
public final static Byte
TOUCH_BASE
public final static Integer
ENCODER_BASE
public final static Byte
GPIO_BASE
public final static Byte
GPIO_DIRECTION_OUTPUT
public final static Byte
GPIO_DIRECTION_INPUT
public final static Byte
GPIO_BULK
public final static Byte
GPIO_BULK_SET
public final static Byte
GPIO_BULK_CLEAR
public final static Integer
GPIO_BULK_TOGGLE
public final static Integer
GPIO_INTENSET
public final static Integer
GPIO_INTENCLR
public final static Integer
GPIO_INTFLAG
public final static Byte
GPIO_PULL_RESISTOR_ENABLED
public final static Byte
GPIO_PULL_RESISTOR_DISABLED
public final static Byte
STATUS_HW_ID
public final static Byte
STATUS_VERSION
public final static Integer
STATUS_OPTIONS
public final static Byte
STATUS_TEMP
public final static Byte
STATUS_SWRST
public final static Byte
TIMER_BASE
public final static Integer
TIMER_STATUS
public final static Byte
TIMER_PWM
public final static Byte
TIMER_FREQ
public final static Byte
ADC_BASE
public final static Integer
ADC_STATUS
public final static Integer
ADC_INTEN
public final static Integer
ADC_INTENCLR
public final static Integer
ADC_WINMODE
public final static Integer
ADC_WINTHRESH
public final static Byte
ADC_CHANNEL_OFFSET
public final static Integer
SERCOM_STATUS
public final static Integer
SERCOM_INTEN
public final static Integer
SERCOM_INTENCLR
public final static Integer
SERCOM_BAUD
public final static Integer
SERCOM_DATA
public final static Integer
NEOPIXEL_STATUS
public final static Byte
NEOPIXEL_PIN
public final static Integer
NEOPIXEL_SPEED
public final static Byte
NEOPIXEL_BUF_LENGTH
public final static Byte
NEOPIXEL_BUF
public final static Byte
NEOPIXEL_SHOW
public final static Byte
TOUCH_CHANNEL_OFFSET
public final static Integer
EEPROM_I2C_ADDR
public final static Integer
ENCODER_STATUS
public final static Integer
ENCODER_INTENSET
public final static Integer
ENCODER_INTENCLR
public final static Integer
ENCODER_POSITION
public final static Integer
ENCODER_DELTA
private IntArray
analogInputPins
private IntArray
pwmOutputPins
private final Integer
chipId
public final static AdafruitSeeSaw.Companion
Companion
-
Constructor Summary
Constructors Constructor Description AdafruitSeeSaw(I2CDeviceInterface i2CDevice, Boolean initReset)
-
Method Summary
Modifier and Type Method Description final IntArray
getAnalogInputPins()
Analog pin inputs. final Unit
setAnalogInputPins(IntArray analogInputPins)
Analog pin inputs. final IntArray
getPwmOutputPins()
Analog PWM (servo) pin outputs. final Unit
setPwmOutputPins(IntArray pwmOutputPins)
Analog PWM (servo) pin outputs. final Integer
getChipId()
Unit
close()
final Integer
getOptions()
final Long
getVersion()
final Boolean
getProdDatecode(Short pid, Byte year, Byte mon, Byte day)
final Unit
softwareReset(Duration delay)
final Integer
touchRead(Integer pin)
-
-
Constructor Detail
-
AdafruitSeeSaw
AdafruitSeeSaw(I2CDeviceInterface i2CDevice, Boolean initReset)
-
-
Method Detail
-
getAnalogInputPins
final IntArray getAnalogInputPins()
Analog pin inputs. This must be set for analogRead to work.
-
setAnalogInputPins
final Unit setAnalogInputPins(IntArray analogInputPins)
Analog pin inputs. This must be set for analogRead to work.
-
getPwmOutputPins
final IntArray getPwmOutputPins()
Analog PWM (servo) pin outputs. This must be set for analogWrite to work.
-
setPwmOutputPins
final Unit setPwmOutputPins(IntArray pwmOutputPins)
Analog PWM (servo) pin outputs. This must be set for analogWrite to work.
-
getOptions
final Integer getOptions()
-
getVersion
final Long getVersion()
-
softwareReset
final Unit softwareReset(Duration delay)
-
-
-
-