ka und alte code wieder zurücl
This commit is contained in:
20
INF/beispiele/01.4_Battery_level/01.4_Battery_level.ino
Normal file
20
INF/beispiele/01.4_Battery_level/01.4_Battery_level.ino
Normal file
@@ -0,0 +1,20 @@
|
||||
/**********************************************************************
|
||||
Product : Freenove 4WD Car for ESP32
|
||||
Description : Read battery voltage.
|
||||
Auther : www.freenove.com
|
||||
Modification: 2020/12/18
|
||||
**********************************************************************/
|
||||
#include "Freenove_4WD_Car_For_ESP32.h"
|
||||
|
||||
void setup() {
|
||||
Serial.begin(115200); //Set the Serial Baud rate
|
||||
}
|
||||
|
||||
void loop() {
|
||||
Serial.print("Battery ADC : ");
|
||||
Serial.println(Get_Battery_Voltage_ADC());//Gets the battery ADC value
|
||||
Serial.print("Battery Voltage : ");
|
||||
Serial.print(Get_Battery_Voltage()); //Get the battery voltage value
|
||||
Serial.println("V");
|
||||
delay(300);
|
||||
}
|
||||
Reference in New Issue
Block a user