MatrixMiniR4 1.1.4
Matrix Mini R4 Arduino Library API Documentation
Loading...
Searching...
No Matches
MiniR4I2C.h
Go to the documentation of this file.
1
7#ifndef MINIR4I2C_H
8#define MINIR4I2C_H
9
12#include "MiniR4MxCtrlExt.h"
13#include "MiniR4MotionExt.h"
14#include "MiniR4TCS34725.h"
16
26template<uint8_t ID, TwoWire* WIRE> class MiniR4I2C
27{
28public:
35 {
36 MXMotion._ch = ID;
37 MXLaser._ch = ID;
38 MXColor._ch = ID;
39 MXCtrl._ch = ID;
40 GroveBME280._ch = ID;
41
42 MXMotion._pWire = WIRE;
43 MXLaser._pWire = WIRE;
44 MXColor._pWire = WIRE;
45 MXCtrl._pWire = WIRE;
46 GroveBME280._pWire = WIRE;
47 }
48
54
55 // Adafruit_TCS34725 MXColor = Adafruit_TCS34725(
56 // TCS34725_INTEGRATIONTIME_50MS, TCS34725_GAIN_4X, TCS34725_ADDRESS, WIRE, ID);
57
58private:
59};
60
61#endif // MINIR4I2C_H
A library for interfacing with the BME280 sensor via I2C.
Matric Color Sensor functions.
Handling MiniR4.I2Cn Matrix Laser Sensor functions.
Handling Matrix Motion Sensor functions.
Handling Matrix Controller (HT) functions.
Handling TCS34725 Color Sensor support (currently replace by MXColor).
A class for interfacing with the BME280 sensor.
Class for interacting with a color sensor.
Class for controlling motors and servos in the Matrix Controller (HT).
Class for interfacing with a laser distance sensor.
Class for motion sensing using a Matrix Motion sensor.
TwoWire * _pWire
Template class for managing I2C devices.
Definition MiniR4I2C.h:27
MiniR4I2C()
Constructor initializes the I2C devices with the given ID and wire.
Definition MiniR4I2C.h:34
MatrixColor MXColor
Matrix Color sensor instance.
Definition MiniR4I2C.h:51
MatrixLaser MXLaser
Matrix Laser sensor instance.
Definition MiniR4I2C.h:50
MatrixController MXCtrl
Matrix Controller (HT) instance.
Definition MiniR4I2C.h:52
MatrixMotion MXMotion
Matrix Motion sensor instance.
Definition MiniR4I2C.h:49
GroveI2C_BME280 GroveBME280
Grove BME280 sensor instance.
Definition MiniR4I2C.h:53