Skip to content

Commit b6b8774

Browse files
committed
improve descriptions
1 parent ef63a74 commit b6b8774

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

examples/ATtinyX02/BasicUsage/BasicUsage.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <Arduino.h>
44
#include <MHZ19X.h>
55

6-
// use PA6 is used for RX and PA7 for TX.
6+
// This code uses serial communication with PA6 as RX and PA7 as TX to connect to the MH-Z19C.
77
auto co2sensor = MHZ19C<PIN_PA6, PIN_PA7>();
88

99
void setup()

examples/ESP32/BasicUsage/BasicUsage.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
#include <Arduino.h>
44
#include <MHZ19X.h>
55

6-
// use UART2 (Hardware serial; RX=GPIO16, TX=GPIO17)
6+
// This code uses the UART2 serial port to connect to the MH-Z19C.
7+
// (Hardware serial; RX=GPIO16, TX=GPIO17)
78
auto co2sensor = MHZ19C_UART2();
89

910
/*
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)
1113
auto co2sensor = MHZ19C_UART1();
1214
*/
1315

0 commit comments

Comments
 (0)