Android Programming Press on the image to return to the main documentation page.

Things

List of types:

Gpio
PeripheralManager
UartDevice

Gpio


Events:

StateChanged (Value As Boolean)

Members:


  AddListener (EventName As String)

  Close

  Direction As Int [write only]

  DIRECTION_IN As Int

  DIRECTION_OUT_INITIALLY_HIGH As Int

  DIRECTION_OUT_INITIALLY_LOW As Int

  IsInitialized As Boolean

  Value As Boolean

Members description:

AddListener (EventName As String)
Adds a listener. The StateChanged event will be raised when the state changes.
Close
Closes the Gpio.
Direction As Int [write only]
Sets the direction (input / output). The value should be one of the DIRECTION constants.
DIRECTION_IN As Int
DIRECTION_OUT_INITIALLY_HIGH As Int
DIRECTION_OUT_INITIALLY_LOW As Int
IsInitialized As Boolean
Value As Boolean
Gets or sets the current value.

PeripheralManager

Provides access to Android Things boards hardware.

Events:

None

Members:


  GpioList As List [read only]

  Initialize

  IsInitialized As Boolean

  OpenGpio (Name As String) As Gpio

  OpenUart (Name As String) As UartDevice

  UartDeviceList As List [read only]

Members description:

GpioList As List [read only]
Returns a list with the available Gpio pins.
Initialize
Initializes the manager.
IsInitialized As Boolean
OpenGpio (Name As String) As Gpio
Opens a pin.
OpenUart (Name As String) As UartDevice
Open a Uart device
UartDeviceList As List [read only]
Returns a list with the available Uart devices.
You should call UartDevice.Initialize to open one.

UartDevice


Events:

DataAvailable (Buffer() As Byte)

Members:


  AddListener (EventName As String)

  Baudrate As Int [write only]

  DataSize As Int [write only]

  IsInitialized As Boolean

  Parity As Int [write only]

  PARITY_EVEN As Int

  PARITY_MARK As Int

  PARITY_NONE As Int

  PARITY_ODD As Int

  PARITY_SPACE As Int

  StopBits As Int [write only]

  Write (Data() As Byte)

  Write2 (Data() As Byte, Length As Int)

Members description:

AddListener (EventName As String)
Adds a listener. The DataAvailable event will be raised when data is available.
Baudrate As Int [write only]
Sets the baudrate (9600 for example).
DataSize As Int [write only]
Sets the data size (8 for example).
IsInitialized As Boolean
Parity As Int [write only]
Sets the parity. One of the PARITY constants.
PARITY_EVEN As Int
PARITY_MARK As Int
PARITY_NONE As Int
PARITY_ODD As Int
PARITY_SPACE As Int
StopBits As Int [write only]
Sets the stop bits (1 for example).
Write (Data() As Byte)
Write2 (Data() As Byte, Length As Int)

Top