NOOB in need of help


Results 1 to 10 of 10

Threaded View

  1. #4
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Code:
    main:
    
    Pause 200
    
    if portb.0 = 1 then gosub pressed0
    
    if portb.1 = 1 then gosub pressed1
    
    if portb.2 = 1 then gosub pressed2
    
    if portb.3 = 1 then gosub pressed3
    
    goto main
    
    pressed0:
    toggle portb.4
    return
    
    pressed1:
    toggle portb.5
    return
    
    pressed2:
    toggle portb.6
    return
    
    pressed3:
    toggle portb.7
    return
    
    end
    Try this way it should do what you need.

    See TOGGLE command on manual.

    Al.
    Last edited by aratti; - 25th January 2009 at 01:53.
    All progress began with an idea

Similar Threads

  1. LCD_AnyPin.pbp
    By Darrel Taylor in forum PBP Extensions
    Replies: 112
    Last Post: - 23rd September 2024, 19:06
  2. Replies: 2
    Last Post: - 7th March 2008, 03:16
  3. Help a noob out?
    By yasiryassin in forum mel PIC BASIC
    Replies: 2
    Last Post: - 15th January 2008, 07:37
  4. Crystals & Caps - Super noob question??
    By kevj in forum General
    Replies: 4
    Last Post: - 24th September 2007, 18:11
  5. Uber noob needs clarity!
    By bill12780 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 23rd July 2007, 22:40

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