Class AdafruitSeeSaw
-
- All Implemented Interfaces:
-
com.diozero.api.DeviceInterface,java.lang.AutoCloseable
public class AdafruitSeeSaw implements DeviceInterfaceAn 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 classAdafruitSeeSaw.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static ByteSTATUS_BASEpublic final static IntegerSERCOM0_BASEpublic final static IntegerDAC_BASEpublic final static IntegerINTERRUPT_BASEpublic final static IntegerDAP_BASEpublic final static IntegerEEPROM_BASEpublic final static ByteNEOPIXEL_BASEpublic final static ByteTOUCH_BASEpublic final static IntegerENCODER_BASEpublic final static ByteGPIO_BASEpublic final static ByteGPIO_DIRECTION_OUTPUTpublic final static ByteGPIO_DIRECTION_INPUTpublic final static ByteGPIO_BULKpublic final static ByteGPIO_BULK_SETpublic final static ByteGPIO_BULK_CLEARpublic final static IntegerGPIO_BULK_TOGGLEpublic final static IntegerGPIO_INTENSETpublic final static IntegerGPIO_INTENCLRpublic final static IntegerGPIO_INTFLAGpublic final static ByteGPIO_PULL_RESISTOR_ENABLEDpublic final static ByteGPIO_PULL_RESISTOR_DISABLEDpublic final static ByteSTATUS_HW_IDpublic final static ByteSTATUS_VERSIONpublic final static IntegerSTATUS_OPTIONSpublic final static ByteSTATUS_TEMPpublic final static ByteSTATUS_SWRSTpublic final static ByteTIMER_BASEpublic final static IntegerTIMER_STATUSpublic final static ByteTIMER_PWMpublic final static ByteTIMER_FREQpublic final static ByteADC_BASEpublic final static IntegerADC_STATUSpublic final static IntegerADC_INTENpublic final static IntegerADC_INTENCLRpublic final static IntegerADC_WINMODEpublic final static IntegerADC_WINTHRESHpublic final static ByteADC_CHANNEL_OFFSETpublic final static IntegerSERCOM_STATUSpublic final static IntegerSERCOM_INTENpublic final static IntegerSERCOM_INTENCLRpublic final static IntegerSERCOM_BAUDpublic final static IntegerSERCOM_DATApublic final static IntegerNEOPIXEL_STATUSpublic final static ByteNEOPIXEL_PINpublic final static IntegerNEOPIXEL_SPEEDpublic final static ByteNEOPIXEL_BUF_LENGTHpublic final static ByteNEOPIXEL_BUFpublic final static ByteNEOPIXEL_SHOWpublic final static ByteTOUCH_CHANNEL_OFFSETpublic final static IntegerEEPROM_I2C_ADDRpublic final static IntegerENCODER_STATUSpublic final static IntegerENCODER_INTENSETpublic final static IntegerENCODER_INTENCLRpublic final static IntegerENCODER_POSITIONpublic final static IntegerENCODER_DELTAprivate IntArrayanalogInputPinsprivate IntArraypwmOutputPinsprivate final IntegerchipIdpublic final static AdafruitSeeSaw.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description AdafruitSeeSaw(I2CDeviceInterface i2CDevice, Boolean initReset)
-
Method Summary
Modifier and Type Method Description final IntArraygetAnalogInputPins()Analog pin inputs. final UnitsetAnalogInputPins(IntArray analogInputPins)Analog pin inputs. final IntArraygetPwmOutputPins()Analog PWM (servo) pin outputs. final UnitsetPwmOutputPins(IntArray pwmOutputPins)Analog PWM (servo) pin outputs. final IntegergetChipId()<Error class: unknown class>close()final IntegergetOptions()final LonggetVersion()final BooleangetProdDatecode(Short pid, Byte year, Byte mon, Byte day)final UnitsoftwareReset(Duration delay)final IntegertouchRead(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.
-
close
<Error class: unknown class> close()
-
getOptions
final Integer getOptions()
-
getVersion
final Long getVersion()
-
softwareReset
final Unit softwareReset(Duration delay)
-
-
-
-