summaryrefslogtreecommitdiff
path: root/src/app/ccs811test/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/ccs811test/main.cc')
-rw-r--r--src/app/ccs811test/main.cc39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/app/ccs811test/main.cc b/src/app/ccs811test/main.cc
deleted file mode 100644
index da51546..0000000
--- a/src/app/ccs811test/main.cc
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * 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;
-}