TeensyNanoExoCode
Loading...
Searching...
No Matches
ThIMU.h
Go to the documentation of this file.
1#ifndef THIMU_H
2#define THIMU_H
3
4#if defined(ARDUINO_TEENSY36) || defined(ARDUINO_TEENSY41)
5
6#include <Arduino.h>
7#include <Wire.h>
8#include "I2CHandler.h" // Just used for register and address definitions
9
10
11
12
13class ThIMU
14{
15 public:
16 ThIMU(bool is_left);
17 bool init(float timeout = 500); // timeout in ms
18 float read_data();
19
20 private:
21 bool _handshake();
22 bool _is_left;
23 bool _is_initialized;
24};
25
26#endif
27#endif
void init()
Definition RealTimeI2C.cpp:91