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
e0c1439c
Commit
e0c1439c
authored
Feb 07, 2022
by
Eric Duminil
Browse files
Moving includes from h to cpp : sensor
parent
dc148588
Changes
2
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/co2_sensor.cpp
View file @
e0c1439c
#include
"co2_sensor.h"
#include
"config.h"
#include
"led_effects.h"
#include
"util.h"
// Just time.h
#include
"sensor_console.h"
#include
<Wire.h>
namespace
config
{
// UPPERCASE values should be defined in config.h
uint16_t
measurement_timestep
=
MEASUREMENT_TIMESTEP
;
// [s] Value between 2 and 1800 (range for SCD30 sensor).
...
...
ampel-firmware/co2_sensor.h
View file @
e0c1439c
...
...
@@ -4,11 +4,6 @@
// The SCD30 from Sensirion is a high quality Nondispersive Infrared (NDIR) based CO₂ sensor capable of detecting 400 to 10000ppm with an accuracy of ±(30ppm+3%).
// https://github.com/sparkfun/SparkFun_SCD30_Arduino_Library
#include
"src/lib/SparkFun_SCD30_Arduino_Library/src/SparkFun_SCD30_Arduino_Library.h"
// From: http://librarymanager/All#SparkFun_SCD30
#include
"config.h"
#include
"led_effects.h"
#include
"util.h"
#include
"sensor_console.h"
#include
<Wire.h>
namespace
config
{
extern
uint16_t
measurement_timestep
;
// [s] Value between 2 and 1800 (range for SCD30 sensor)
...
...
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