Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
a63bbdac
Commit
a63bbdac
authored
Mar 22, 2022
by
Eric Duminil
Browse files
Slowly adding code
parent
76433dcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
a63bbdac
...
...
@@ -63,7 +63,10 @@ namespace sensor {
Wire
.
begin
(
12
,
14
);
// ESP8266 - D6, D5;
#endif
#if defined(ESP32)
// For ESP32 : RX on GPIO17, TX on GPIO16
# define S8_UART_PORT 2 // Change UART port if it is needed
Wire
.
begin
(
21
,
22
);
// ESP32
HardwareSerial
S8_serial
(
S8_UART_PORT
);
/**
* SCD30 ESP32
* VCC --- 3V3
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment