1
0
mirror of https://github.com/undera/pylgbst.git synced 2020-11-18 19:37:26 -08:00

271 Commits

Author SHA1 Message Date
Andrey Pokhilko
c73311528d Cosmetics around bleak 2020-07-04 09:29:55 +03:00
Andrey Pokhilko
afdbe4b2e0 Improve demo logging 2020-06-30 08:47:55 +03:00
Andrey Pokhilko
8d9bb94d87 Release 1.2.0 1.2.0 2020-06-27 15:41:55 +03:00
Andrey Pokhilko
7949f3477c Some docs 2020-06-27 15:39:50 +03:00
Andrey Pokhilko
777bc3ad32 Merge branch 'master' of github.com:undera/pylgbst 2020-06-27 15:32:56 +03:00
Andrey Pokhilko
94db2840f4
Allow finding hub by name (#68)
* Cosmetics

* Add hub name parameter

* Fix tests

* Fix test

* Fix conn priority
2020-06-27 15:26:47 +03:00
Andrey Pokhilko
93e1573e64 Cosmetics 2020-06-27 13:56:01 +03:00
Andrey Pokhilko
3c2f0b493b
Experiment with Bleak changes (#55)
* Introduce driver that works with Bleak, enables to use BLE devices in windows without a need of external BLE dongle.

* Fix issues in auto review.

* Add method description and UT.

* Fix docstring to comply with pep257

* Experiment

* Make test only work in 3.7+

* Fix versions

* One more try

* Kick it

* Kick

* cmon

* Dummm

* yeah yeah

* Add

* Fix version

Co-authored-by: mgr <tomekmgr@gmail.com>
2020-06-27 13:45:53 +03:00
Andrey Pokhilko
ba7594a081
Update README.md 2020-06-11 21:27:36 +03:00
Andrey Pokhilko
c7e24c10d4
Update README.md 2020-06-05 22:30:14 +03:00
Andrey Pokhilko
c47fb2326a
Offer alternative fix for start_power commands (#53)
* Offer alternative fix

* Fix test

* Dummy commit

* fix

* Decrease coverage

* fix test

* turn into comments

* Empty it

* Rollback experiment
2020-03-07 09:36:30 +03:00
Andrey Pokhilko
fef871946a experiment with codacy 2020-02-15 18:55:14 +03:00
Andrey Pokhilko
ff51129247 Fix test 2020-02-08 15:20:07 +03:00
laurentchar
69b234b924
peripheral:EncodedMotor: fixed goto_position() (#50) 2020-02-08 15:18:15 +03:00
laurentchar
d1019ac9f4
peripheral:Motor: fixed _speed_abs for END_STATE_BRAKE (#48) 2020-01-30 22:03:33 +03:00
MDE
dff312534f
Added test and fix for device matching (#46)
* Added test for device matching

Mocking the scanning and testing the connect() of each backend would be
better, but that requires more refactoring with prior agreement.
Added unittest2 dependency for subTest support, other solutions are
available.

* Fixed matching for Move Hub

If other BLE devices are around, an exception occurs on hub_mac.lower() if
default hub_mac (None) is used.

* fixup! Added test for device matching

Removed unittest2 dependency and features
2020-01-29 09:33:53 +03:00
Andrey Pokhilko
9e4fab4aae Fix tests 2020-01-28 22:00:29 +03:00
Andrey Pokhilko
17e22bf810 Use command codes in write direct 2020-01-28 20:53:28 +03:00
laurentchar
300268a2ab Update peripherals.py (#45) 2020-01-09 13:45:02 +03:00
laurentchar
4f8dbe852c demo.py (#44)
Line #155 should be removed
2020-01-08 10:56:57 +03:00
carnage
d271f251dd Add advanced button handler (#42)
* Add advanced button handler

* Rename pylgbst/extras/advancedbutton.py to examples/advancedbutton/advancedbutton.py

* Create README.md
2019-12-29 11:28:11 +03:00
Andrey Pokhilko
c71befdb66 Update handler signature 2019-12-27 22:36:14 +03:00
Andrey Pokhilko
6a49f5c840 Enable subscribing to LED notifications 2019-12-27 22:18:51 +03:00
Andrey Pokhilko
0a4227d132 Refactoring 2019-12-27 22:07:22 +03:00
Andrey Pohilko
1e48f23f61 Fix issues 2019-12-27 16:22:37 +03:00
Andrey Pohilko
f058ece155 Add meta info file 2019-12-27 10:50:06 +03:00
Andrey Pohilko
7ffab4fb0c Publish to PyPi 1.1.2 2019-12-27 10:47:41 +03:00
Andrey Pohilko
907a2dd561 Cosmetics 2019-12-27 10:34:04 +03:00
Mike C. Fletcher
c955820521 Bunch of Tiny Fixes and Enhancements (#41)
* Use setuptools to allow the extras_require to work in python3.6

This also declares some hidden dependencies for the underlying
connection protocols, but note that they are normally reliant
on system-packaged versions, which is a bit less than optimal.

* In message, on assert of incoming type, note failing type

* In utilities, guard against truncated input.

* In demo allow for specifying different connections and demos on command line

Also addresses a crash in led demo where parameters x and y were not provided
to an empty lamba that was passed in.

* Remove commentted line, apply black formatting

* Raise TypeError when an incorrectly-typed message is received

* Apply black automatic formatting to the utilities module
2019-12-27 10:27:59 +03:00
Andrey Pokhilko
7efd92700d
Update .travis.yml 2019-12-26 23:00:43 +03:00
Andrey Pokhilko
7dc8b806fa Update link 2019-12-26 14:42:44 +03:00
Andrey Pokhilko
64776eadc8 Fix issue #40 2019-12-26 14:37:23 +03:00
Andrey Pokhilko
9abe2495b0 Fix issue #39 2019-12-26 14:31:51 +03:00
Andrey Pokhilko
d3e4c58c5a Add one more video 2019-12-26 14:21:05 +03:00
Andrey Pokhilko
c11e8fbd18 A bit of refactoring 2019-12-20 14:39:34 +03:00
Andrey Pokhilko
8b970c0792
Update README.md 1.1.1 2019-12-09 16:33:00 +03:00
Andrey Pokhilko
fc8ed8ce2b
Release 1.1.1 2019-12-09 16:32:47 +03:00
Mariusz Woloszyn
cde1bea308 Orange color fix (#35) 2019-11-12 20:36:14 +02:00
Andrey Pokhilko
13919d7ecc Restoring bb8 connection 2019-09-07 23:10:50 +03:00
Andrey Pokhilko
a6a5f12e6c Make all backends aware of zero address 2019-09-07 23:10:34 +03:00
Andrey Pokhilko
5deafe9d4a Fix name of Hub 2019-08-23 13:24:32 +03:00
Andrey Pokhilko
de54a2edc0 Release 1.1.0 1.1.0 2019-08-17 20:42:52 +03:00
Andrey Pokhilko
43aba755cd Release 2.0.0 2019-08-17 20:41:08 +03:00
Andrey Pokhilko
77508273de Fix test better? 2019-08-15 13:07:52 +03:00
Andrey Pokhilko
462188b6b2 Fix test 2019-08-15 13:04:36 +03:00
Andrey Pokhilko
3a8d17737b BB8 joystick is ready 2019-08-15 11:43:26 +03:00
Andrey Pokhilko
e1e650220f figured out directions of joystick 2019-08-15 10:54:37 +03:00
Andrey Pokhilko
c9112d8fe4 Progressing 2019-08-14 23:29:08 +03:00
Andrey Pokhilko
bafdf3fc63 Keep researching BB8 and joyystick 2019-08-14 17:09:45 +03:00
Andrey Pokhilko
f3e4a9dbdb Preparing joystick operations 2019-08-14 13:58:55 +03:00