Unverified Commit 6ba8a2e8 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Remove obsolet ccs811test (included in datalogger)

parent 35a98377
Loading
Loading
Loading
Loading

src/app/ccs811test/Makefile.inc

deleted100644 → 0
+0 −12
Original line number Diff line number Diff line
# 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

src/app/ccs811test/main.cc

deleted100644 → 0
+0 −39
Original line number Diff line number Diff line
/*
 * 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;
}