From dc399fbc9313217051fbd53c3ef98b463d7bc93d Mon Sep 17 00:00:00 2001 From: "Matthias@Dell" Date: Mon, 26 Jun 2023 18:59:29 +0200 Subject: [PATCH] removed old code --- teng/teng.ino | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/teng/teng.ino b/teng/teng.ino index 6ac9231..1968bcd 100644 --- a/teng/teng.ino +++ b/teng/teng.ino @@ -26,29 +26,6 @@ void blinkLED(unsigned n=5, unsigned delay_=200) { } - -/* uint16_t MAX_DEVIATION = 0; */ -/* void measurebaseline(unsigned nmeas, unsigned interval=50) { */ -/* uint64_t value = 0; */ -/* unsigned minval = 1023; */ -/* unsigned maxval = 0; */ -/* for (unsigned i = 0; i < nmeas; i++) { */ -/* unsigned reading = analogread(pin_teng); */ -/* value += reading; */ -/* delay(interval); */ -/* if (reading > maxval) { maxval = reading; } */ -/* if (reading < minval) { minval = reading; } */ -/* } */ -/* BASELINE = value / nMeas; */ -/* if (BASELINE - minVal > maxVal - BASELINE) { */ -/* MAX_DEVIATION = BASELINE - minVal; */ -/* } */ -/* else { */ -/* MAX_DEVIATION = maxVal - BASELINE; */ -/* } */ -/* } */ - - void setup() { setStatus(DeviceStatus::BUSY); Serial.begin(9600);