raspberry pi
Raspberry Pi Build HAT
After checking the manual
Getting Started with the Raspberry Pi Build HAT (Control LEGO Technic devices with Raspberry Pi)
We can find it works with LEGO Train Motor Set 88011
Install the release version
$ pip3 install buildhat
Install the latest version
$ pip3 install git+https://github.com/RaspberryPiFoundation/python-build-hat.git
See also