PM2.5 (Old Version, Probe Only, No Module) ========================================== .. figure:: /_static/products/ledong-module/static/images/pm25_old.png :width: 45% :align: center Overview -------------------- Used for PM2.5 detection. Technical Specifications ------------------------ Operating voltage: VCC 3.3V -5V Communication: Serial port, baud rate 9600 Output: PM2.5 detection value 0-500μg/m³ Pin Definition ------------------- ===== ========== Pin Definition ===== ========== GND Ground VCC Power AO Input PLS Pulse ===== ========== Example Code ------------------- **Graphical code** .. code-block:: python from mpython import * from bluebit import PM25 pm25 = PM25() from lv_gui import * gui = GUI() import time while True: gui.fill(type=0) gui.draw_label(text=str(pm25.dustDensity_average()), row=1, color=0xffffff, wrap=False) gui.update() time.sleep(1) .. figure:: /_static/products/ledong-module/static/examples/pm25.png :width: 100% :align: center