Trying to make code smaller


Results 1 to 10 of 10

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Code:
    Led var portX.x
    
    A0 var Byte
    
    Loop:
    For A0 = 1 to 10
    Toggle Led
    Pause 50000
    next A0
    'comment the 3 lines hereunder for only ten flashes (leave the END)
    Low Led
    Pause 5000
    goto Loop
    
    end
    This Example will flash led ten times. Led will turn off for 5 secs and flashing will repeat.
    Hope it is what you need.

    Happy new year

    Al.
    Last edited by aratti; - 2nd January 2009 at 14:18.
    All progress began with an idea

Similar Threads

  1. Code doesn't work on 16F648A
    By Mr_Joe in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st September 2018, 22:09
  2. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 22:31
  3. Can someone help me make a code for this:
    By joseph in forum mel PIC BASIC
    Replies: 0
    Last Post: - 29th April 2009, 18:58
  4. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  5. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26

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