Commit graph

34 commits

Author SHA1 Message Date
Dan Halbert
336d04e5d8 fix import order in examples for pylint 2020-08-23 10:05:36 -04:00
Nina Zakharenko
cceaf0de1e Check if UARTService is in waiting before reading Stream 2020-06-13 22:59:12 -07:00
Nina Zakharenko
646cdd8afd Rename uart_server to uart_service for consistency 2020-06-13 22:58:13 -07:00
dherrada
ffd1f1d9f0 Ran black, updated to pylint 2.x 2020-03-16 15:39:06 -04:00
Limor "Ladyada" Fried
4621e97568
Merge pull request #58 from dglaude/patch-1
Maximum 10 data per second + Mu plotter syntax
2020-01-21 12:40:21 -05:00
Dan Halbert
dfea28146b Provide a default HID descriptor, and move desccriptor out of ble_hid_periph.py example 2020-01-16 21:15:08 -05:00
David Glaude
af621843a1
Maximum 10 data per second + Mu plotter syntax
This should fix issue #57
2020-01-16 00:08:07 +01:00
Dan Halbert
2856d2b263 Disconnect when restarting HID example 2020-01-14 17:40:59 -05:00
Scott Shawcroft
7ddb50ed31
Remove Magic Light
Now available here: https://github.com/adafruit/Adafruit_CircuitPython_BLE_Magic_Light
2019-12-18 17:26:57 -08:00
Scott Shawcroft
03431500fd
Remove to_hex import that was used in debugging 2019-12-18 13:30:47 -08:00
Scott Shawcroft
625cbef217
Remove debug prints from example 2019-12-18 13:24:01 -08:00
Scott Shawcroft
581dc2fb3f
Remove ANCS
It now lives here: https://github.com/adafruit/Adafruit_CircuitPython_BLE_Apple_Notification_Center
2019-12-18 13:22:59 -08:00
Scott Shawcroft
53f6352ec2
Fix ANCS example. Fixes #44 2019-12-12 13:48:39 -08:00
Scott Shawcroft
b01d787bf0
Lint 2019-12-05 15:20:04 -08:00
Scott Shawcroft
533ce77bbf
Add Magic Light support 2019-12-05 15:09:52 -08:00
Scott Shawcroft
44639a0199
Clean up lint 2019-12-04 15:27:24 -08:00
Scott Shawcroft
479771fd76
Show RSSI with the number of pixels lit 2019-12-03 15:17:42 -08:00
Scott Shawcroft
036b65f646
Add support for pairing and services that require it.
This adds HID Server, Current Time Service and Apple Notification
Service Client support.
2019-11-22 11:10:16 -08:00
Scott Shawcroft
cd773157d1
Lint and rename SolicitServicesAdvertisement 2019-11-01 13:46:30 -07:00
Scott Shawcroft
3434bfa5d3
Tweaks based on feedback from Dan and Thea
This renames Smart* to BLE* and removes the smart recognition. It
is replaced by knowing the type of what we're interested at use
time only. Only printing Service lists is now dumber.

Interal variables to _bleio classes are now public as bleio_*
instead so that other classes in the library can access them and
its clearer what they are.
2019-11-01 11:48:34 -07:00
Dan Halbert
8e0d39bfdb Get RGB central and periph demo working 2019-10-30 14:07:16 -04:00
Scott Shawcroft
8291ee9b1b
Rework the API to use descriptors.
This makes Advertisement and Service definitions declarative by
factoring out parsing logic out into shareable descriptor classes
similar to how the Register library works.

This also introduces SmartAdapter and SmartConnection which will
auto-create the correct Advertisements and Services without requiring
any direct use of UUIDs. Instead, classes are used to identify
relevant objects to "recognize".

This requires https://github.com/adafruit/circuitpython/pull/2236 and
relates to https://github.com/adafruit/circuitpython/issues/586.
2019-10-22 17:30:12 -07:00
Kattni Rembor
b41ce50240 Adding plotter code. 2019-09-26 15:40:37 -04:00
Kattni Rembor
8c3477a8ac Consolidating examples. 2019-09-25 15:48:31 -04:00
Kattni Rembor
6ea3de487c Adding CircuitPython color picker example code 2019-09-25 15:37:02 -04:00
Kattni Rembor
fbd68de32e Adding CPB color picker example. 2019-09-25 13:58:36 -04:00
Dan Halbert
afae4dbd5b ble_demo_central.py: recover better from disconnect; use other analog inputs 2019-08-22 09:02:41 -04:00
Dan Halbert
cd2b7ddbf8 Add and update examples 2019-07-11 19:43:36 -04:00
Dan Halbert
82c00ac209 Improve UARTServer example 2019-02-01 11:02:37 -05:00
Dan Halbert
bb2e2ea1f6 do not start advertising automatically; update examples; fix doc issues 2019-01-23 23:44:12 -05:00
Dan Halbert
e23b5a267d UARTService -> UARTServer; update and correct examples 2019-01-22 20:21:44 -05:00
Dan Halbert
e8c73a22cb add cookiecutter files; UARTService now working with adafruit_bluefruit_connect library 2019-01-21 20:56:26 -05:00
Dan Halbert
a4b6429b21 add examples 2019-01-08 16:52:42 -05:00
Dan Halbert
64aac3f520 squashed:
Fill in initial details after cookie-cutter creation.
Eddystone URL Beacon works; LocationBeacon works but why wrong endian??
fix typos; add comment re big-endian UUID's in LocationBeacon
Do UUID parsing in Python; beacon comments touchup
Add UUID __repr__
don't subclass bleio; add PeripheralServer and UARTServer
strawman uart
Use CharacteristicBuffer.
2019-01-08 16:52:42 -05:00