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.3.tar.gz
(15.6 kB
view hashes)
Built Distribution
Close
Hashes for kaspersmicrobit-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37e04ecd49baecc3d80a42202e3843332eb0423ed799cf0d7e6aa7c115b0b26e |
|
MD5 | bb0ae613f7c95bb31ca8a51f16ce84a8 |
|
BLAKE2b-256 | 7bf38dbc79e55243376946b3e0745160913ba3a5b79f5042f9f3998744a6f931 |