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.2.tar.gz
(15.5 kB
view hashes)
Built Distribution
Close
Hashes for kaspersmicrobit-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 176912dce65c0191518b44dd52c9d2644b47e1d78610abbb04f065a99c591bc2 |
|
MD5 | 1b9ad0d528e03ff7809016f2d826793e |
|
BLAKE2b-256 | 07827c8a1cc88cf6f7211a93620bfafa68a6879a36e1977c24f814f066fd8c1b |