Hi,
I'm new to C language.
In my main.c
extern float BatteryLvl_Volts;
// Use ADC to get BatteryLvl_Volts
float get_BatteryLvl_Volts(void)
{
return BatteryLvl_Volts;
}
In my Battery.c
#include "main.h"
void battery_level_indicator(float BatteryLvl_Volts)
{
if( 3.3 < BatteryLvl_Volts ){
LED_ON(GREEN); // Turn on Green LED
}
}
My Question
The IDE will give a warning: No such file or directory. How to solve this issue, please? I need to get BatteryLvl_Volts from main.c.
Thanks!