April 2020
Intermediate to advanced
294 pages
7h 53m
English
The mpconfigboard.h header file contains the definitions for features, such as pin mappings for peripherals, LEDs, and USB, as well as board definitions, such as the board name and the microcontroller target. A very brief example of some of the information that is contained in this file is shown in the following screenshot:
#define MICROPY_HW_BOARD_NAME "B-L475E-IOT01A"#define MICROPY_HW_MCU_NAME "STM32L475"#define MICROPY_HW_HAS_SWITCH (1)#define MICROPY_HW_ENABLE_RNG (1)#define MICROPY_HW_ENABLE_RTC (1)#define MICROPY_HW_ENABLE_USB (1)
In the preceding code, we can see some example definitions from mpconfigboard.h, which give the hardware board name and MCU type as well as defining several MicroPython features, such as a ...
Read now
Unlock full access