Seesaw Class

Definition

Represents Seesaw device

public class Seesaw : IDisposable
type Seesaw = class
    interface IDisposable
Public Class Seesaw
Implements IDisposable
Inheritance
Seesaw
Implements

Constructors

Seesaw(I2cDevice)

Initializes new instance of Seesaw.

Properties

I2cDevice

I2C device used for communication

Version

Version of the SeeSaw module.

Methods

AnalogRead(Byte)

Reads the value of an analog pin.

DisableEncoderInterrupt(Byte)

Disable the interrupt from firing when the encoder changes.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

EnableEncoderInterrupt(Byte)

Enable the interrupt to fire when the encoder changes position.

GetEncoderDelta(Byte)

The change in encoder position since it was last read.

GetEncoderPosition(Byte)

Read the current position of the encoder.

GetOptions()

Gets the options/modules present on the Seesaw board

GetTemperature()

Reads the temperature of the SeeSaw device.

GetVersion()

Get the firmware version of the Seesaw board.

HasModule(Seesaw+SeesawModule)

Tests to see if a module has been compiled into the SeeSaw firmware.

Initialize(I2cDevice)

Initializes the Seesaw device.

Read(Seesaw+SeesawModule, Seesaw+SeesawFunction, Int32, Int16)

Read a byte array from the I2cDevice connected to the Seesaw board.

ReadByte(Seesaw+SeesawModule, Seesaw+SeesawFunction, Int16)

Read a byte from the I2cDevice connected to the Seesaw board.

ReadEEPromByte(Byte)

Read a byte from the EEProm area on the Seesaw module.

ReadGpioDigital(Byte)

Read a value from a GPIO pin.

ReadGpioDigitalBulk(UInt64)

Read a value from a number of GPIO pins.

ReadGpioInterruptFlags()

Read all the Gpio interrupt flags. Clears any flags when read.

SetEncoderPosition(Int32, Byte)

Set the current position of the encoder.

SetGpioInterrupts(UInt32, Boolean)

Enable or disable interrupts for a GPIO pin.

SetGpioPinMode(Byte, PinMode)

Set the PinMode for a GPIO Pin.

SetGpioPinModeBulk(UInt64, PinMode)

Set the PinMode for a number of GPIO pins

SetI2cAddress(Byte)

Change the I2C address that the Seesaw board listens on. Note that this will reset communications with the host device and dispose the current I2cDevice.

SoftwareReset()

Performs a soft reset of the SeeSaw module.

TouchRead(Byte)

Reads the analog value on an capacitive touch-enabled pin.

Write(Seesaw+SeesawModule, Seesaw+SeesawFunction, ReadOnlySpan<Byte>)

Write a series of bytes to the I2cDevice connected to the Seesaw board.

WriteByte(Seesaw+SeesawModule, Seesaw+SeesawFunction, Byte)

Write a byte to the I2cDevice connected to the Seesaw board.

WriteEEProm(Byte, Byte[])

Write a byte array to the EEProm area on the Seesaw module.

WriteEEPromByte(Byte, Byte)

Write a byte to the EEProm area on the Seesaw module.

WriteGpioDigital(Byte, Boolean)

Write a value to GPIO pin

WriteGpioDigitalBulk(UInt64, Boolean)

Write a value to a number of GPIO pins

Applies to