From a20e01fc4affa3a5e525e2e9305a85c6ff7042e3 Mon Sep 17 00:00:00 2001 From: Johannes Krug Date: Tue, 5 Mar 2019 17:15:17 +0100 Subject: [PATCH] analog Datei formatiert --- arduino/analog_signal_output.ino | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 arduino/analog_signal_output.ino diff --git a/arduino/analog_signal_output.ino b/arduino/analog_signal_output.ino deleted file mode 100644 index 0d1807d..0000000 --- a/arduino/analog_signal_output.ino +++ /dev/null @@ -1,21 +0,0 @@ -//analoger ausgang gibt nur den aktuellen wert des potis aus, also nur zum genauen poti einstellen geeignet! ansonsten nutzlos - - -int sensorPin = A0; // select the input pin for the potentiometer -int ledPin = D0; // select the pin for the LED -int sensorValue = 0; // variable to store the value coming from the sensor - -void setup() -{ -pinMode(ledPin,OUTPUT); -Serial.begin(9600); -} -void loop(){ -sensorValue = analogRead(sensorPin); -digitalWrite(ledPin, HIGH); -delay(sensorValue); -digitalWrite(ledPin, LOW); -delay(sensorValue); -Serial.println(sensorValue, DEC); -} -