UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

uint16Array Class

Module: common

Array of type uint16_t.

Item Index

Methods

uint16Array

(
  • nelements
)

Instantiates the array.

Parameters:

  • nelements Number

    number of elements in the array

getitem

(
  • index
)
Number

Access a particular element in the array.

Parameters:

  • index Number

    index of array to read from

Returns:

Number:

the value of the element found at the given index of the array

setitem

(
  • index
  • value
)

Modify a particular element in the array.

Parameters:

  • index Number

    index of array to write to

  • value Number

    the value to set the element found at the given index of the array