Skip to content

Commit

Permalink
Switch to use SDS011Lib instead
Browse files Browse the repository at this point in the history
  • Loading branch information
TimOrme committed May 5, 2023
1 parent 7db03f3 commit 866e6fa
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 1,057 deletions.
4 changes: 2 additions & 2 deletions aqimon/read/novapm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from . import AqiRead, ReaderState, ReaderStatus
import serial
from typing import Union
from .sds011 import QueryModeReader
from sds011lib import SDS011QueryReader
from statistics import mean


Expand All @@ -26,7 +26,7 @@ def __init__(
if isinstance(ser_dev, str):
ser_dev = serial.Serial(ser_dev, timeout=2)

self.reader = QueryModeReader(ser_dev=ser_dev, send_command_sleep=command_wait_time)
self.reader = SDS011QueryReader(ser_dev=ser_dev, send_command_sleep=command_wait_time)

# Initial the reader to be in the mode we want.
self.reader.wake()
Expand Down
316 changes: 0 additions & 316 deletions aqimon/read/sds011/__init__.py

This file was deleted.

Loading

0 comments on commit 866e6fa

Please sign in to comment.