#define CO2_PWM_PIN 5
#define CO2_UART_TX_PIN 9
#define CO2_UART_RX_PIN 10
MH_Z19 mhz19(CO2_PWM_PIN, CO2_UART_TX_PIN, CO2_UART_RX_PIN);
void setup() {
// ...
mhz19.setup();
// ...
}
void loop(void) {
// ...
Serial1.println(mhz19.read_pwm_value());
Serial1.println(mhz19.read_uart_value());
// ...
}
-
Notifications
You must be signed in to change notification settings - Fork 0
A simple arduino library for MH-Z19 by using SoftwareSerial
License
jimms/mh_z19
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A simple arduino library for MH-Z19 by using SoftwareSerial
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published