SELKIELogger  1.0.0
AutomationHatRead.c File Reference

Read values from a Pimoronoi Automation Hat. More...

#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "SELKIELoggerI2C.h"
Include dependency graph for AutomationHatRead.c:

Go to the source code of this file.

Functions

int main (void)
 

Detailed Description

Read values from a Pimoronoi Automation Hat.

Definition in file AutomationHatRead.c.

Function Documentation

◆ main()

int main ( void  )

Will read the ADC values from the automation hat, assuming it to be connected to /dev/i2c-1

Returns
-1 on error, otherwise 0

Definition at line 41 of file AutomationHatRead.c.