This is an application designed for controlling LEGO trains, equipped with SBrick or PfxBrick, from a Raspberry pi.
- Python 2.7
- BlueZ
- bluepy
BlueZ is the official Bluetooth stack on Linux.
bluepy is a Python module which provides an interface to Bluetooth LE on Linux.
Ref: https://github.com/IanHarvey/bluepy
$ pip install bluepy
$ python traincontrol.py
$ sudo hcitool lescan