I have a project which I need to get the signal between 1 and 0 (0000111100001111), like the blue line in the graph, with potentiometer input, and I need to change the interval when I turn the potentiometer. I try to do this with digitalWrite(), but I can only get all 0 or 1.
raymondwang:
I have a project which I need to get the signal between 1 and 0 (0000111100001111), like the blue line in the graph, with potentiometer input, and I need to change the interval when I turn the potentiometer. I try to do this with digitalWrite(), but I can only get all 0 or 1.
You have had lots of time to think about your project, but you have not explained anything that makes sense to me. Digital write IS ONLY 0 OR 1! What does the potentiometer do? How is it connected? Where is your code?
Paul
What does "getting a signal" mean?
I have a project which I need to get the signal between 1 and 0 (0000111100001111), like the blue line in the graph, with potentiometer input, and I need to change the interval when I turn the potentiometer. I try to do this with digitalWrite(), but I can only get all 0 or 1.
Umm, you actually ARE changing the interval in the blue trace (its decreasing).
You actually DO have the signal (pattern) between 1 and 0.