Thanks!
here i'll post some sketches that works:
delay time set by an analog input
int sensorPin = 7;
int ledPin = 14;
int sensorValue = 0;
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
sensorValue = analogRead(sensorPin);
digitalWrite(ledPin, HIGH);
delay(sensorValue);
digitalWrite(ledPin, LOW);
delay(sensorValue);
}
If you declare PIN 7 (P1_5) as input, then, connect the wiper on PIN 15(P1_7). Maybe the pin mapping is wrong.
const int sensorPin = 7;
const int ledPin = 14;
int sensorValue = 0;
int sensorMin = 1