Manipulating keypad presses


Results 1 to 10 of 10

Threaded View

  1. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Not sure to follow you but let's see.
    Code:
    ' Pseudo, for entertainement only or you'll be changed to a pumpkin at midnight
    Number=0
    Duty=0
    
    DoIt:
    LCDOUT $FE,1,"Number=",dec number Call KeyPad Routine IF KeyPad Scan routine Return a valid single decimal number entry Then
    Number = (Number *10) + KeyPadValue ' ' Some test to make sure you're in the max duty range ' GOTO DoIt ENDIF
    If Number !=Duty then
    Duty=Number HPWM 1,freq, Number endif
    GOTO DoIt
    Last edited by mister_e; - 3rd January 2011 at 04:22.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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