Adafruit Library
Classes | Macros
WipperSnapper_I2C_Driver.h File Reference
#include "wippersnapper/i2c/v1/i2c.pb.h"
#include <Adafruit_Sensor.h>
#include <Arduino.h>
#include <Wire.h>

Go to the source code of this file.

Classes

class  WipperSnapper_I2C_Driver
 Base class for I2C Drivers. More...
 

Macros

#define PERIOD_24HRS_AGO_MILLIS   (millis() - (24 * 60 * 60 * 1000))
 Used for last sensor read time, initially set 24hrs ago (max period)
 
#define ONE_SECOND_IN_MILLIS   1000
 Used for period checks.
 

Detailed Description

Base implementation for I2C device drivers.

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Copyright (c) Brent Rubell 2021-2022 for Adafruit Industries.

MIT license, all text here must be included in any redistribution.