switches & LEDs ... my first attempt


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    yankee's Avatar
    yankee Guest


    Did you find this post helpful? Yes | No

    Default

    Hey, that's a neat lil' demo. Thanks! Now it does make sense. Lets see if I can get something working now.

    I'm also still interested in seeing what Melanie comes up with. I keep trying different things with no luck.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Silly mistake in the code (which everyone should have spotted!)...

    Change the two lines (one in each LED control block)...

    If LedACounter>1 then...

    and

    If LedBCounter>1 then...

    to both be >0 and not >1

    Runs like a trooper...

    (I have edited my posted code to reflect the corrections, just copy and run)

  3. #3
    yankee's Avatar
    yankee Guest


    Did you find this post helpful? Yes | No

    Smile Sorry for the long overdue reply ...

    ... I've been out of commission since August and just wanted to say thanks! Now that I'm back in the game, I'll try this out.

    ~ Dave

Similar Threads

  1. Run a string of LEDs from the mains
    By The Master in forum Off Topic
    Replies: 30
    Last Post: - 1st October 2009, 18:55
  2. Using LEDs as light sensors
    By skimask in forum Code Examples
    Replies: 3
    Last Post: - 30th December 2006, 22:19
  3. arrays LEDs Switches
    By ilteris in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd October 2005, 03:05
  4. controlling leds with the switches
    By ilteris in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th October 2005, 21:02
  5. Can anyone help a beginner in a struggle?
    By douglasjam in forum mel PIC BASIC
    Replies: 1
    Last Post: - 5th May 2005, 23:29

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