multi functions button press


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    May 2009
    Location
    USA
    Posts
    16


    Did you find this post helpful? Yes | No

    Default

    You should initialize B0 to be 0 and it's best to use Select Case for this code:
    Code:
    Select Case B0
    	Case 0:
    		high led_1
    		pause 100
    		low led_1
    		B0 = B0 + 1
    	Case 1:
    		high led_2
    		pause 100
    		low led_2
    		B0 = B0 + 1
    	Case Else
    		high led_3
    		pause 100
    		low led_3
    		B0 = 0
    End Select
    Why is the email address verification case sensitive?

  2. #2
    Join Date
    Apr 2009
    Posts
    36


    Did you find this post helpful? Yes | No

    Default

    thank you GoldStar i will try it out and i post the result.

Similar Threads

  1. Giving power to MCU upon button press - Good Idea?
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st July 2009, 07:34
  2. Using Sleep
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th August 2008, 04:05
  3. Button press and press & hold how to ?
    By GrandPa in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 22nd August 2007, 03:37
  4. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 02:43
  5. Code check -- button not working
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 2nd March 2006, 22:43

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