You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
831 B

<> wrote this file. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy us a ( > 0 ) beer/mate in return - The Xil TEAM
#ifndef TSL2561_H
#define TSL2561_H
#include <stdint.h>
#include <stdbool.h>
#include "drivers/i2c.h"
typedef enum {
} tsl2561_address_select_t;
typedef struct {
// Configuration
tsl2561_address_select_t addr_select;
// Internal data
bool initilized;
// calibration data
// busses
i2c_t* i2c;
// collected data
int32_t light;
uint8_t id;
uint8_t inits;
} tsl2561_t;
#endif // TSL2561_H