How to add usermod "battery" to WLED?

Hello again,

Now I try to add the usermod “battery” to WLED.
The readme says:

:balloon: Installation

define USERMOD_BATTERY in wled00/my_config.h

My “wled00/my_config.h” looks now:

#pragma once

/*
 * Welcome!
 * You can use the file "my_config.h" to make changes to the way WLED is compiled!
 * It is possible to enable and disable certain features as well as set defaults for some runtime changeable settings.
 *
 * How to use:
 * PlatformIO: Just compile the unmodified code once! The file "my_config.h" will be generated automatically and now you can make your changes.
 *
 * ArduinoIDE: Make a copy of this file and name it "my_config.h". Go to wled.h and uncomment "#define WLED_USE_MY_CONFIG" in the top of the file.
 *
 * DO NOT make changes to the "my_config_sample.h" file directly! Your changes will not be applied.
 */

// uncomment to force the compiler to show a warning to confirm that this file is included
//#warning **** my_config.h: Settings from this file are honored ****

/* Uncomment to use your WIFI settings as defaults
  //WARNING: this will hardcode these as the default even after a factory reset
#define CLIENT_SSID "Your_SSID"
#define CLIENT_PASS "Your_Password"
*/

//#define MAX_LEDS 1500       // Maximum total LEDs. More than 1500 might create a low memory situation on ESP8266.
//#define MDNS_NAME "wled"    // mDNS hostname, ie: *.local
define USERMOD_BATTERY

An error accurs as well when I try

define ‘USERMOD_BATTERY’

or

-D USERMOD_BATTERY

Sorry, I’m totally lost in this.

I got it!

Just if other newbies are asking, at the file “my_config.h” you have to add:

#define USERMOD_BATTERY
#define USERMOD_BATTERY_USE_LIPO
#define USERMOD_BATTERY_MEASUREMENT_INTERVAL 10000
#define USERMOD_BATTERY_MIN_VOLTAGE 2.8
#define USERMOD_BATTERY_MAX_VOLTAGE  4.2
#define USERMOD_BATTERY_TOTAL_CAPACITY 3000

… or with other parameters.

That’s it!