Skip to content
Dr. Takeyuki Ueda edited this page Jan 18, 2019 · 1 revision

Install

pip install mh_z19

Import

import mh_z19

Functions

read()

Read CO2 concentration and return as following json string: {'co2': 583}

Untested functions

I'm afraid following functions are not tested due to lack of necessary devices and apparatus for test. I'll really appreciate if some kindly person who has necessary stuffs try following functions and tell me the result as a issue report, thank you!

abc_on()

The command 0x79 ON/OFF Auto Calibration on the Software Section on the DataSheet. This function set ABC as ON.

abc_off()

The command 0x79 ON/OFF Auto Calibration on the Software Section on the DataSheet. This function set ABC as OFF.

span_point_calibration(span)

The command 0x88 Calibrate Span Point (SPAN) on the Software Section on the DataSheet.

xero_point_calibration()

The command 0x87 Calibrate Span Point (ZERO) on the Software Section on the DataSheet.

detection_range_5000()

The command 0x99 Detection range setting on the Software Section on the DataSheet. This function set range as 5000.

detection_range_2000()

The command 0x99 Detection range setting on the Software Section on the DataSheet. This function set range as 2000.

checksum(array)

Compute the Checksum for the array of int value and return as packed value for unsigned char

You can’t perform that action at this time.