SELKIELogger
1.0.0
|
Read values from a Raspberry Pi power hat (or compatible sensors) More...
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include "SELKIELoggerI2C.h"
Go to the source code of this file.
Functions | |
int | main (void) |
Read values from a Raspberry Pi power hat (or compatible sensors)
Definition in file PowerHatRead.c.
int main | ( | void | ) |
Assumes that four INA219 chips are connected to /dev/i2c-1 using addresses 0x40 to 0x43, and polls for current values. Identifies some out of range conditions and will report an appropriate error message.
Definition at line 44 of file PowerHatRead.c.