Metadata-Version: 2.1
Name: kaspersmicrobit
Version: 0.0.4
Summary: A python package to connect to the Bluetooth LE GATT services of paired bbc micro:bit devices
Home-page: https://github.com/janickr/kaspersmicrobit
Author: Janick Reynders
License: Mozilla Public License 2.0 (MPL 2.0)
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE.md

# Kasper's microbit

A package to connect to the Bluetooth LE GATT services of paired bbc micro:bit devices

Example:
```python

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)

```

