Skip to content

Customising the Build

The Infinnovation team edited this page Apr 29, 2016 · 2 revisions

The default build is fairly minimal, partly to keep the image size down. You can customise the build by editing the file mpconfigport within the micropython library. N.B. I haven't had time to try these yet, but things you may like to change include:

  • MICROPY_BUILTINS_FLOAT - set to 1 to enable floating-point support (you also need to set the definition of MICROPY_FLOAT_IMPL to MICROPY_FLOAT_IMPL_FLOAT or MICROPY_FLOAT_IMPL_DOUBLE)
  • MICROPY_BUILTINS_* - set to 1 to enable extra builtin functions e.g. min, max.
  • MICROPY_PY_* - enable extra standard modules e.g. collections

Clone this wiki locally