From b2ceca87a589b79b31957779e529691284649fb1 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sun, 24 Feb 2019 11:35:35 -0500 Subject: [PATCH] added ina219.h --- afsk/main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/afsk/main.c b/afsk/main.c index 0258835c..4bc69bbb 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -33,6 +33,7 @@ #include "spi/ax5043spi.h" #include #include +#include "ina219.h" // Put your callsign here #define CALLSIGN "KU2Y" @@ -76,6 +77,14 @@ int charging = 0; uint16_t config = (0x2000 | 0x1800 | 0x0180 | 0x0018 | 0x0007 ); +int x_fd; // I2C bus 0 +int x_address; // I2C address of INA219 +int x_powerMultiplier; +int x_currentDivider; +int x_calValue; +int y_fd; // I2C bus 0 +int y_address; // I2C address of INA219 + int main(void) { // sleep(20);