Simple Blinking LED - WTF!!


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Hi johnnylynx,
    Change CALL to GoSub
    Call is an asm function - return works with gosub.
    Hi,

    Thanks for the quick feedback - Question though - why would it work if all three or two CALL lines are active?

    I tried changing the CALL to GOSUB and it still didn't work. If I add a 'PAUSE pausetime' after the LOW command it worked. Found that solution elsewhere!

    Why would it work with out the added PAUSE (with 2 or more CALL's active)?

    Confused I am.

    John.

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by johnnylynx View Post
    Hi,

    Thanks for the quick feedback - Question though - why would it work if all three or two CALL lines are active?

    I tried changing the CALL to GOSUB and it still didn't work. If I add a 'PAUSE pausetime' after the LOW command it worked. Found that solution elsewhere!

    Why would it work with out the added PAUSE (with 2 or more CALL's active)?

    Confused I am.

    John.
    Hi John,
    Think about what you are telling it to do,
    Turn light on
    pause 200
    turn light off
    no waiting here
    turn light on
    pause . . . The PIC is faster than the eye.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Jan 2009
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Hi John,
    Think about what you are telling it to do,
    Turn light on
    pause 200
    turn light off
    no waiting here
    turn light on
    pause . . . The PIC is faster than the eye.
    Yep, time for me to get some rest...Can't believe I missed that. Now I can rest peacefully.

    Thanks!

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 06:14
  2. Free Project - 245 LED Display
    By T.Jackson in forum Code Examples
    Replies: 221
    Last Post: - 16th August 2009, 04:59
  3. 20 Mhz Crystal, simple blinking LED
    By BenjaminsShinob in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th October 2007, 05:06
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. simple LED Blinking project
    By koossa in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th December 2004, 01:25

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