esp32-car/include/ir.h

26 lines
326 B
C++

#ifndef IR_H
#define IR_H
#include <Wire.h>
#include <Arduino.h>
#include <algorithm>
#include "consts.h"
struct IRData
{
uint8_t mode;
uint8_t pins[IR_COUNT];
uint8_t count;
uint8_t data[8];
};
class IR
{
public:
static TwoWire *i2c;
static IRData data;
static void init();
static void update();
};
#endif