We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef63a74 commit b6b8774Copy full SHA for b6b8774
2 files changed
examples/ATtinyX02/BasicUsage/BasicUsage.ino
@@ -3,7 +3,7 @@
3
#include <Arduino.h>
4
#include <MHZ19X.h>
5
6
-// use PA6 is used for RX and PA7 for TX.
+// This code uses serial communication with PA6 as RX and PA7 as TX to connect to the MH-Z19C.
7
auto co2sensor = MHZ19C<PIN_PA6, PIN_PA7>();
8
9
void setup()
examples/ESP32/BasicUsage/BasicUsage.ino
@@ -3,11 +3,13 @@
-// use UART2 (Hardware serial; RX=GPIO16, TX=GPIO17)
+// This code uses the UART2 serial port to connect to the MH-Z19C.
+// (Hardware serial; RX=GPIO16, TX=GPIO17)
auto co2sensor = MHZ19C_UART2();
10
/*
-// use UART1 (Hardware serial; RX=GPIO9, TX=GPIO10)
11
+// This code uses the UART1 serial port to connect to the MH-Z19C.
12
+// (Hardware serial; RX=GPIO9, TX=GPIO10)
13
auto co2sensor = MHZ19C_UART1();
14
*/
15
0 commit comments