0

I want to select the first value of my variable value . That variable value change with time

23rd Jan 2020, 4:39 AM
Yagyesh Sahu
5 Answers
+ 3
Please show us your attempt so that we can help you... otherwise this may be seen as an attempt to get others to do your work. https://www.sololearn.com/discuss/1316935/?ref=app
23rd Jan 2020, 5:04 AM
BroFar
BroFar - avatar
+ 1
In this case you want to save the first value? (213) Is the first value only needed in that function `void loop()`? or should it be available globally?
23rd Jan 2020, 10:36 AM
Ipang
0
I am coding for my project In my project, i connect a sensor it's giving integer value it's value change some time I want to select first value of the integer value Void setup(){ PinMode (int x , INPUT ); Void loop (){ Int v= digitalRead(x ); Cout << v; _____________________________ Output 213 215 216 213 215 217 218 220 214 ...................................
23rd Jan 2020, 7:45 AM
Yagyesh Sahu
0
You can create it
23rd Jan 2020, 10:44 AM
Yagyesh Sahu
0
Thank for comment
23rd Jan 2020, 10:44 AM
Yagyesh Sahu