A python package to connect to the Bluetooth LE GATT services of paired bbc micro:bit devices
Project description
Kasper's microbit
A package to connect to the Bluetooth LE GATT services of paired bbc micro:bit devices
Example:
import time
from kaspersmicrobit import KaspersMicrobit
CHANGE_THIS_TO_YOUR_MICROBIT_BLUETOOTH_ADDRESS = 'E3:7E:99:0D:C1:BA'
def pressed(button):
print(f"button {button} pressed")
with KaspersMicrobit(CHANGE_THIS_TO_YOUR_MICROBIT_BLUETOOTH_ADDRESS) as microbit:
microbit.buttons.on_button_a(press=pressed)
time.sleep(10)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kaspersmicrobit-0.0.4.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for kaspersmicrobit-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba17260a486d04448a83e41862c91524b4b4d8ed6b34c7628a0f11dd199d0b90 |
|
MD5 | 94634e2b9a19705f6fe6d1d09b6a8863 |
|
BLAKE2b-256 | 37f3e27e55b28a7ccf8a246cfd2b5ff452cc47c4049bbe2177342596e05fb02e |