We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62a215a commit dcfa369Copy full SHA for dcfa369
example/Core/Src/main.c
@@ -97,9 +97,11 @@ int main(void)
97
/* USER CODE BEGIN WHILE */
98
while (1)
99
{
100
- INA219_GetCurrent(&sensor);
101
- printf("Current: %d\n", sensor.current);
102
- HAL_Delay(1000);
+ INA219_GetCurrent(&sensor, &hi2c1);
+ INA219_GetBusVoltage(&sensor, &hi2c1);
+ INA219_GetPower(&sensor, &hi2c1);
103
+ INA219_GetShuntVoltage(&sensor, &hi2c1);
104
+ HAL_Delay(500);
105
/* USER CODE END WHILE */
106
107
/* USER CODE BEGIN 3 */
0 commit comments