In example we will add DS18B20 support on SAMD21 Seeed XIAO board build
1. Get MicroPython source including libraries:
git clone https://github.com/micropython/micropython.git
cd micropython
git submodule update --init --recursive
2. Prepare SAMD21 build
cd ports/samd cd boards
We need to brepare build for SEED_XIAO_SAMD21 board
3. We need to modify mpconfigboard.h in cd SEEED_XIAO_SAMD21 folder so go:
cd SEEED_XIAO_SAMD21 notepad mpconfigboard.h
4. Modify the file with
#define MICROPY_PY_MACHINE (1)
#define MICROPY_PY_1WIRE (1)
5.
