Pushbutton code routine suggestions?


Results 1 to 3 of 3

Threaded View

  1. #1
    jessey's Avatar
    jessey Guest

    Default Pushbutton code routine suggestions?

    Hello

    Lately I've been playing around with some push buttons to create code that will increase and decrease a word sized variable from 0 to 65535 and to do it fairly quickly while maintaining some kind of reasonable control and visual effect. I did manage to write some code that seems to do the job ok but it uses close to 600 words!!! It still needs a little tweaking but otherwise works great. Would anyone here have any routines or suggestions that would accomplish or complement this, that would possibly use less code space? I've included my code as an attachment below. I've tried to implemented a variable pause that changes (speeds-up) while the push button is held down and then, when the button is released (when you get close to the number you want) and re-pressed, then the number up or down will be slowed down. I checked the archives but couldn't find anything that was related to what I'm trying to do here. Any suggestions or comments will be appreciated.

    Thanks
    jessey
    Attached Files Attached Files

Similar Threads

  1. TSA5512/5511 code for PIC16F877/84
    By Marin in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th August 2013, 06:16
  2. PIC BASIC TLC5940 code
    By eletrokat in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2010, 21:01
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  4. Replies: 14
    Last Post: - 26th September 2007, 05:41
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts