pyupm_maxds3231m module

class pyupm_maxds3231m.MAXDS3231M(bus=0, devAddr=104)[source]

Bases: object

API for the MAXDS3231M I2C Real-Time Clock.

ID: maxds3231m

Name: Realtime Clock (RTC) Sensor Library

Category: light

Manufacturer: maxim

Connection: i2c

Link:https://www.maximintegrated.com/en/products/digital/real-time- clocks/DS3231.html This module defines the API for MAXDS3231M

C++ includes: maxds3231m.hpp

getDate(time)[source]

bool getDate(Time3231 &time)

Gets the date and time from the chip.

time: Time structure

getTemperature()[source]

uint16_t getTemperature()

Gets the on-board temperature.

name()[source]

std::string name()

Returns the name of the component

setDate(time)[source]

void setDate(Time3231 &time)

Sets the date and time on the chip.

time: Time structure

class pyupm_maxds3231m.Time3231[source]

Bases: object

day
hour
minute
month
second
weekDay
year