Configuration¶
Standard Library¶
The Library Reference is configured at compile time using
defines that starts with CONFIG_PUMBAA_
. The default configuration
includes most functionality, as most application wants that. If an
application has special requirements, for example memory constraints,
it has to be configured to remove unnecessaray functionality.
The underlying MicroPython source code can also be configured in
compile time. Often these configuration valiables starts with
MICROPY_
.
Simba can be configured as described in the Simba documentation,
with the only difference that your config.h
must include
simba_config.h
, as in src/config.h. Put your
defines before this include.
Search order¶
Highest priority first.
Simba build system¶
- Command line as
CDEFS_EXTRA="<configuration variable>=<value>"
. - A file named
config.h
in the application root folder. - The default configuration file, src/pumbaa_config_default.h.
PlatformIO¶
- The variable
build_flags
inplatformio.ini
asbuild_flags = -D<configuration variable>=<value>
. - A file named
config.h
in the application source foldersrc
. - The default configuration file, src/pumbaa_config_default.h.
Arduino IDE¶
- A file (also called a tab) named
config.h
in the sketch. - The default configuration file, src/pumbaa_config_default.h.
Variables¶
All configuration variables are listed in src/pumbaa_config_default.h.