Greetings, friends, I am trying to make a code which turns on a led with different times and cycles added to that, the use of the potentiometer to increase the speed of ignition ... if you can help me with any idea, I thank you ... example This is how it works as I want but I cannot add anything else or increase the ignition speed
int led = 7;
int ledpin = 8;
int var = 0;
int i = 0;
int pot;
int ledState = false;
long unsigned time = 0;
unsigned long time_1 = 0;
Your code doesn't compile so it definitely doesn't work. And it contains no attempt to do anything with millis(). There's not really anything there to help with.
ok friends maybe I did not understand but that code is compiled and works. what I am looking for is a help to be able to do the same with millis and to be able to add the potentiometer .... thanks
I am not very good in English so I use a google translator....