Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GlasgowEmbedded/glasgow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2ef6d7fc7c8f
Choose a base ref
...
head repository: GlasgowEmbedded/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ad7796864914
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Jul 4, 2020

  1. applet.sensor.pmsx003: unmark as preview.

    Also, verified that it works fine with PMS7003.
    whitequark committed Jul 4, 2020
    Copy the full SHA
    b6d4c02 View commit details
  2. Copy the full SHA
    ad77968 View commit details
Showing with 7 additions and 3 deletions.
  1. +1 −1 docs/archive
  2. +6 −2 software/glasgow/applet/sensor/pmsx003/__init__.py
8 changes: 6 additions & 2 deletions software/glasgow/applet/sensor/pmsx003/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Ref: Plantower PMS5003 series data manual
# Accession: G00053
# Ref: Plantower PMS7003 series data manual (Chinese)
# Accession: G00054

import logging
import asyncio
import struct
@@ -77,11 +82,10 @@ async def read_measurement(self):
class SensorPMSx003Applet(GlasgowApplet, name="sensor-pmsx003"):
logger = logging.getLogger(__name__)
help = "measure air quality with Plantower PMx003 sensors"
preview = True
description = """
Measure PM2.5 air quality with Plantower PMx003 family sensors.
This applet has been tested with PMS5003.
This applet has been tested with PMS5003 and PMS7003.
"""

__pins = ("rx", "tx")