15 lines
283 B
C
15 lines
283 B
C
#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";
|
|
|
|
void printSpectrum(int file);
|
|
float getFullSpectrum(int file);
|
|
float getInfraredLight(int file);
|
|
int init_TSL2561(char *bus);
|