Hey,
I was hoping someone would just tell me an easier(shorter) way to do this.
val = analog(0);
if(val < 0){
delay(1000)
a = 1
else
a = 0
if(val < 0 && a = 1)
Type: Posts; User: aperson
Hey,
I was hoping someone would just tell me an easier(shorter) way to do this.
val = analog(0);
if(val < 0){
delay(1000)
a = 1
else
a = 0
if(val < 0 && a = 1)
I haven't tried that but I did figure out something that works:::
read = a
read = b
read = c
read = d
read = e
if a != b || c || d || e
something to that effect you can see when it changes...
okay sorry what about this::::
analogread = x
x=preeviousx
print previousx
how do you look at previousx?
TY
I read about that but I don't get it.
Lets say you say Byte = lastByte, how do you every make lastByte stop updating and look at the previous Byte?
Thanks
Hello,
I was hoping someone could tell me a way to retain information in a variable temporarily until it could be evaluated.
something like this :::
serial available
read byte
byte = previous...