Connor
32fbd10821
Added more generic Python gitignore
2019-06-28 20:47:58 +10:00
Conr86
9624e17d83
Fixed test
2019-06-22 17:35:44 +10:00
Conr86
4589b9b8cb
Reworked module
2019-06-22 17:35:11 +10:00
Conr86
e7cb94e364
Added test, fixed typo
2019-06-22 17:15:44 +10:00
Conr86
75457cdad8
Renamed README for consistency
2019-06-22 16:58:53 +10:00
zinob
32d381c261
Removes completely unneccesary Requests dependency.
2018-10-04 11:56:19 +02:00
Simon Albinsson
33ef0708a8
README/setup: Now advertises python3 compatibility
2018-04-23 20:57:34 +00:00
Simon Albinsson
1a5162c70b
sgp30: Now passes tests under py3k
2018-04-23 20:53:14 +00:00
Simon Albinsson
04e41743de
Tests: Check both raw and stripped data
...
The values in the raw-data should never be different than the
coresponding fields in the data-struct. Apparently they can...
This is but on one location, but this checks for that oddity.
2018-04-23 20:48:26 +00:00
Simon Albinsson
89039475fd
Makefile: Continue testing if py3 fails
2018-04-23 20:47:21 +00:00
Simon Albinsson
05e6a98001
tests:mock-bus more python3 comptaible
2018-04-23 20:26:16 +00:00
Simon Albinsson
6ddc1b6abc
README: Grammar fixes and some general thoughts
2018-04-23 19:43:02 +00:00
Simon Albinsson
d08601a82a
Removes some dead-code and imports
2018-04-23 19:38:46 +00:00
Simon Albinsson
56d1829205
setup.py: Taggs for currently supported python versions
2018-04-23 19:18:44 +00:00
Simon Albinsson
21c793a41e
README: Fixes to RST and example code
2018-04-23 18:31:36 +00:00
Simon Albinsson
b5877b6d51
README Fixes bug introduced by fixing rst-lit error
...
Seems like PyPi wont display -a revisions on its first page.
And apparently the rst-linter does not detect malformed underlines.
2018-04-23 08:58:37 +00:00
Simon Albinsson
ea6fc48fbc
README: Tries to get pypi tp render..
...
Updates all errors found by rst-lint. Changes versioning so that i dont
bump minor version just to faceroll Readme
2018-04-23 08:49:22 +00:00
Simon Albinsson
0a35ec2f76
Makefile: cleans old dist-dir before building
...
My somewhat ham-fisted usage of twine requires that there is just one
file in the dist-directory.
2018-04-23 08:37:12 +00:00
Simon Albinsson
967aac5289
setup.py: changes to license, hopefully fixes pypi
2018-04-23 08:37:12 +00:00
zinob
888d27879d
Readme: Fixes link format to RST
2018-04-23 10:02:57 +02:00
Simon Albinsson
33dec0df92
Readme: Attempt to switch from md to rst
...
Adding the type annotation to setup.py didn't seem to help. Lets see if
restructured text renders better than md.
2018-04-22 20:24:15 +00:00
Simon Albinsson
ca59ea15cc
setup.py: adds long_description_content_type
...
Hope fully this will fix Readme rendering issue on pypi
2018-04-22 20:07:26 +00:00
Simon Albinsson
d8ce0e478c
README: example code formatting fix
2018-04-22 20:05:15 +00:00
Simon Albinsson
561d4bd1c4
mock_smbus:canged smbus import to python3style
2018-04-22 19:54:17 +00:00
Simon Albinsson
c27a93c4ee
setup.py: Adds requirements
2018-04-22 19:53:34 +00:00
Simon Albinsson
604da15045
README: Todo: fix python3
2018-04-22 19:52:45 +00:00
Simon Albinsson
de5851ad89
Makefile: Now runs tests with python3
2018-04-22 19:52:18 +00:00
Simon Albinsson
74e5aceb05
setup.py: updaed author and syntaxfix
2018-04-22 19:40:55 +00:00
Simon Albinsson
2169816f40
Updates readme to reflect the library better
2018-04-22 19:40:11 +00:00
Simon Albinsson
f21f54f7cd
Adds set air quality, some work on base-line save
2018-04-16 12:51:28 +00:00
Simon Albinsson
d5ba6a9cab
New main fuction should actually be usefull.
2018-04-16 12:46:23 +00:00
Simon Albinsson
5a3bfcfd3d
removes unneccesary bind
...
There is no point in binding rw-function to the right bus-object if we
are already in an object that is bound to a bus.
2018-04-16 12:43:45 +00:00
Simon Albinsson
9292f4e17e
Adds timing to mock-bus
...
I dont know if it is a limitation of i2cwr or the sgp but it dosnt seem
to clock-strech but rahter just not present any data if the messure ment
is not done, so timing is important. The test should now fail if data is
read to fast
2018-04-16 12:39:39 +00:00
Simon Albinsson
ac4446cb36
Re-adds a sleep that got lost in refactorization
2018-04-13 09:26:11 +00:00
Simon Albinsson
3c9c402dad
Further fixing of op-codes
2018-04-13 08:52:48 +00:00
Simon Albinsson
874d95335e
Fixes invalid invalid op-codeds
2018-04-13 08:42:54 +00:00
Simon Albinsson
e82bdb3a5b
Fixes some comments and messages
2018-04-12 22:50:42 +00:00
Simon Albinsson
33a1a15b20
sgp30: refactor load-save-baseline
2018-04-12 22:46:16 +00:00
Simon Albinsson
d1bfc5ed3e
Test: Load/save baseline
2018-04-12 22:45:42 +00:00
Simon Albinsson
cc50d4a735
Fixes bug due to accidental line dupplication
2018-04-12 21:52:36 +00:00
Simon Albinsson
1a25064710
Test: i2c-read now protects agains double reads
2018-04-12 21:51:59 +00:00
Simon Albinsson
b42c4f33e1
adds crc-check to read_write method
2018-04-12 21:41:58 +00:00
Simon Albinsson
17e8468f58
test: naive test of crc
2018-04-12 21:40:17 +00:00
Simon Albinsson
d803d31af5
test:fixes bug in CRC-coruption routine
2018-04-12 21:38:29 +00:00
Simon Albinsson
5c6086d0e2
Test:adds support for breaking crc
2018-04-12 21:22:14 +00:00
Simon Albinsson
a38a71d186
adds requirements.txt
2018-04-12 21:11:46 +00:00
Simon Albinsson
e102eef198
bug fixes after refactoring of general call
2018-04-12 21:04:28 +00:00
Simon Albinsson
100b410a1d
Test: Test i2c_generalcall
2018-04-12 21:02:57 +00:00
Simon Albinsson
3599889c8d
Test: adds support for testing i2c reads
2018-04-12 20:48:26 +00:00
Simon Albinsson
afc8f18456
fixes most basic init
2018-04-12 19:52:03 +00:00