You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include <stdio.h>
|
|
#include <fcntl.h>
|
|
|
|
#include "ezoec.h"
|
|
|
|
int main()
|
|
{
|
|
int fd = open("/dev/i2c-1",O_RDWR);
|
|
|
|
double ec;
|
|
|
|
getEC(fd,&ec);
|
|
|
|
printf("{ \"ec\": %.3f }\n",ec);
|
|
|
|
return 0;
|
|
} |