Skip to main content

MicroPython Library

The Soldered ElectrochemicalGasSensor MicroPython library reads this board over I2C. It has three files: ElectrochemicalGasSensor.py, the driver you import, and lmp91000.py and ads1115.py, which it uses internally. You create an ElectrochemicalGasSensor with the SENSOR_NO preset, your I2C bus and an address, call begin() once and getPPM() for each reading.

The address you pass decides how the library reaches the board. For 0x30 to 0x37 it talks to the board's ATtiny404 bridge; the board ships at 0x30, which the bridgeBoard example passes. For any other address, such as the module's default, 0x49, it talks to the ADS1115 at that address and to the LMP91000 directly. Each page below shows one example from the library at the pinned commit.

Every example works as written on this board over Qwiic: begin() succeeds at the address the example passes. See Hardware Details for the pinout and the ADS1115 address jumpers.

Not installed yet? Follow Quick Start before using the functionality pages.

Functionality​

Each page starts with one verified module example and explains every function the example uses to get that result.