Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: aperson

Search: Search took 0.00 seconds.

  1. help with evaluating analogRead for a length of time

    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)
  2. Replies
    6
    Views
    439

    I haven't tried that but I did figure out...

    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...
  3. Replies
    6
    Views
    439

    okay sorry what about this:::: analogread = x...

    okay sorry what about this::::

    analogread = x
    x=preeviousx
    print previousx

    how do you look at previousx?

    TY
  4. Replies
    6
    Views
    439

    I read about that but I don't get it. Lets say...

    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
  5. Replies
    6
    Views
    439

    variable update::: general advice needed

    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...
Results 1 to 5 of 5