Metadata-Version: 2.1
Name: kaspersmicrobit
Version: 0.0.5
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 python package to make a connection to a bbc microbit by means of the Bluetooth LE GATT services exposed by the microbit

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)

```

More examples can be found in the [examples](https://github.com/janickr/kaspersmicrobit/tree/main/examples) directory.

# Problem solving
Problems related to connecting to the microbit over bluetooth are often solved by pairing your computer again to your 
microbit

See Also: https://support.microbit.org/helpdesk/attachments/19075694226

