1
0
mirror of https://github.com/cmur2/python-veml6070.git synced 2024-12-21 14:54:23 +01:00
Commit Graph

8 Commits

Author SHA1 Message Date
cn
1bdfe0e54a module: add estimated risk level calculation based on UVA light intensity
- thresholds from vendor, take with a grain of salt as these are estimations
2019-09-19 11:00:03 +02:00
cn
4eda08a9c9 module: calculate UVA light intensity correctly for rset != RSET_240K
- compensation for rset != RSET_240K was wrong, it increased UVA power/ADC step for rset > RSET_240K
- UVA power/ADC step should have been decreasing as refresh time (sampling time) got longer
- same behavior as with integration_time setting, that works correctly
2019-09-19 01:18:42 +02:00
cn
df23b9905b module: calculate refresh time from any RSET without lookup table 2019-09-19 00:50:48 +02:00
cn
6b2bde2dce test: add get_refresh_time() test 2019-09-19 00:50:48 +02:00
cn
5cf6d2aad5 module: respect shutdown settings when writing command
- this fixes a serious flaw where until now this library never powered the sensor down
- not noticable directly as the sensor still takes measurements but wastes power in between
2019-09-19 00:50:44 +02:00
cn
f5bb5c01cb test: rename to suffix 2018-03-14 14:03:16 +01:00
cn
38e7af46f6 test: change to unified, ordered read/write log for stability 2018-03-14 01:43:24 +01:00
cn
2086f111f2 module: add pytest for unit and snapshot testing with travis-ci 2018-03-14 00:39:10 +01:00