|gwillz a173ffc473 version bump 0.10.7||3 years ago|
|bgapi||3 years ago|
|flash||3 years ago|
|parse||3 years ago|
|tests||3 years ago|
|.gitignore||3 years ago|
|.gitlab-ci.yml||3 years ago|
|MANIFEST.in||4 years ago|
|README.md||3 years ago|
|requirements.txt||3 years ago|
|setup.cfg||4 years ago|
|setup.py||3 years ago|
A Python library for using the bgm111 by Silicon Labs via a host microcontroller. This library is only tested to be compatible with the bgm111 module, however it should also be compatible with any BlueGecko-based chips (bgm113, bgm121, bgm123). BGAPI documentation by Silicon Labs should be used as a guide when using this library.
Ensure up to date documentation and firmware is used. The bgapi_py is platform independent.
The library was forked from Michael Brown's bgapi.py v0.4 available here. This fork has progressed to modularize much of the code and rename many of the API calls to the new 'Gecko version' of the API/firmware. This library is also Python 3+ focused, Python 2.7 compatibility is rarely tested.
sudo apt-get install python3 pip install -r requirements.txt --user python setup.py install --user
This project is prepared for pylint testing and contains unit tests in the
folder. Usage below:
python3 -Bm pylint --reports=no bgapi python3 -Bm coverage run --source=bgapi -m unittest tests python3 -Bm coverage report -m
This library includes a few files for flashing the BGM and configuring a RaspberryPi in the
bgapi.bgproj is a standard project for installing the bgapi onto a BGM chip with flow control at 230400 baud.
uart-full.dtbo can be copied to the
/boot/overlays/ folder to enable the correct uart pins on boot.
cp flash/uart-full.dtbo /boot/overlays/ echo 'dtoverlay=uart-full' >> /boot/config.txt reboot