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.

MAXDS3231M Class

Module: maxds3231m

This module defines the API for MAXDS3231M

Methods

MAXDS3231M

(
  • bus
  • devAddr
)
Number

Instantiates an MAXDS3231M object

Parameters:

  • bus Number

    Number of the used bus

  • devAddr Number

    Address of the used I2C device

Returns:

Number:

setDate

(
  • time
)

Sets the date and time on the chip.

Parameters:

getDate

(
  • time
)
Boolean

Gets the date and time from the chip.

Parameters:

Returns:

Boolean:

getTemperature

() Number

Gets the on-board temperature.

Returns:

Number:

name

() String

Returns the name of the component

Returns:

String: