COUNTER WORKS IN STEP BY STEP. NOT running CPNTINUSLY

Discussion in 'TinkerCAD' started by Tony DG, Sep 13, 2023.

  1. Tony DG

    Tony DG

    Joined:
    Sep 13, 2023
    Messages:
    1
    Likes Received:
    0
    I wrote this program to scan a button pad and check if up to add or down to subtract a 1 if the button is pressed and released and if the button is not released in a certain time add or Subtract continuously every certain time. Up is Pin 6 and Down is Pin 3.
    Using Tinkertank.
    If I try it step by step it works fine.
    But if I run it continuously it adds 1 more before I try to Subtract or Subtract 1 before I want to change direction. Also on the first press
    It starts from the preset number and not one more or one less.
    Can anyone help me find out why?
    Thank you all
     

    Attached Files:

    Tony DG, Sep 13, 2023
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.