Skip to content
Snippets Groups Projects
Unverified Commit 6ba8a2e8 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Remove obsolet ccs811test (included in datalogger)

parent 35a98377
No related branches found
No related tags found
No related merge requests found
# vim:ft=make
#
# Copyright 2020 Daniel Friesel
#
# SPDX-License-Identifier: CC0-1.0
ifdef app
override arch_drivers += ,i2c
CONFIG_driver_ccs811 = y
COMMON_FLAGS += -DCONFIG_driver_ccs811
loop = 1
endif
/*
* Copyright 2020 Daniel Friesel
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
#if defined(MULTIPASS_ARCH_HAS_I2C) && !defined(CONFIG_driver_softi2c)
#include "driver/i2c.h"
#else
#include "driver/soft_i2c.h"
#endif
#include "driver/ccs811.h"
void loop(void)
{
kout << "CCS811 status is " << ccs811.check() << endl;
}
int main(void)
{
arch.setup();
gpio.setup();
kout.setup();
if (i2c.setup() != 0) {
return 1;
}
kout << "I2C setup OK" << endl;
ccs811.init();
arch.idle_loop();
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment