Traitement-signal-plantes/Code-C/Include/TSL2561.h

15 lines
283 B
C
Raw Normal View History

2023-05-03 09:14:11 +02:00
#include <stdio.h>
#include <stdlib.h>
#include <linux/i2c-dev.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <unistd.h>
char *bus = "/dev/i2c-1";
2023-05-03 10:14:31 +02:00
void printSpectrum(int file);
float getFullSpectrum(int file);
float getInfraredLight(int file);
2023-05-03 09:14:11 +02:00
int init_TSL2561(char *bus);