diff --git a/src/main.cpp b/src/main.cpp index 3d9cf6b..5147de6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -457,7 +457,7 @@ void loop(void) for (int i = 0; i < LINE_COUNT; i++) { - points[i][count % point_count] = uint16_t(abs(ina.readShuntCurrent() - 0.0026f) * 50) + 65; + points[i][count % point_count] = -uint16_t(abs(ina.readShuntCurrent() - 0.0026f) * 50) + 65; // points[1][count % point_count] = -uint16_t(ina.readBusVoltage() * 5) + 65; } ++count;