Hi,
I'm struggling with code for my project.
Two potentiometers read values and I want to store 10 of these consecutive values, from each potentiometer, so that I can use these values to
write to two digital pins later. This need to repeat for an amount of time and then it chooses 10 new values and writes them to the pins again etc.
val1 = analogRead(POT1);
val2 = analogRead(POT2);
// storing part
analogWrite(output, );
analogWrite(output, );
delay(3000);
Thanks in advance,
Regards,
mrlrs