Skip to content

Commit 9010efe

Browse files
committed
update docs
1 parent dab5f98 commit 9010efe

3 files changed

Lines changed: 28 additions & 5 deletions

File tree

CHANGELOG.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Changelog
2+
=========
3+
4+
0.1.4
5+
-----
6+
7+
* Added *midistream* package: MIDI support for Android
8+
* Updated *ABLE* package: get list of bonded BLE devices
9+
* Change exception popup style
10+
11+
0.1.3
12+
-----
13+
14+
* First release version

examples/ble.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,21 @@ ble = BLE()
6262
print(ble)
6363
```
6464

65+
## Get list of paired BLE devices
66+
67+
```python
68+
%%there
69+
for device in ble.bonded_devices:
70+
# device: https://developer.android.com/reference/android/bluetooth/BluetoothDevice
71+
print(type(device), device.getName(), "address:", device.getAddress())
72+
```
73+
6574
## Connect to remote device by a hardware address
6675
In this example device hardware address address is known.
6776

6877
```python
6978
%%there
70-
if not getattr(app, "device_address", None):
71-
app.device_address = "FF:FF:FF:FF:FF:FF"
72-
73-
ble.connect_by_device_address(app.device_address)
79+
ble.connect_by_device_address("AA:AA:AA:AA:AA:11")
7480
```
7581

7682
## Discover device services and characteristics

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
description="Here is the Kivy based app to run code from the Jupyter magic %there",
2121
long_description=long_description,
2222
long_description_content_type="text/x-rst",
23-
author="Alexander Shlemin",
23+
author="b3b",
2424
author_email="ash.b3b@gmail.com",
2525
install_requires=[
2626
"kivy>=2.0.0",
@@ -49,6 +49,9 @@
4949
]
5050
},
5151
url="https://github.com/b3b/ipython-pythonhere",
52+
project_urls={
53+
'Changelog': 'https://github.com/b3b/pythonhere/blob/master/CHANGELOG.rst',
54+
},
5255
# https://pypi.org/classifiers/
5356
classifiers=[
5457
"Development Status :: 3 - Alpha",

0 commit comments

Comments
 (0)