2 LEDs and one pin left


Results 1 to 40 of 54

Threaded View

  1. #11
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by scalerobotics View Post
    Really? Because I am using Dave's code on a 18F26J50 (3.3 volt) with no resistors, and it works like a charm. Red, Blue, off
    Attachment 4604
    Code:
    BLINK:  
         HIGH PORTA.0 
         PAUSE 250 
         LOW PORTA.0  
         PAUSE 250   
         TRISA.0 = 1 
         PAUSE 2000    
         GOTO BLINK
    Nice trick indeed.
    How about RED and BLUE = ON ?

    (without ".....Of course the square wave signal would have to be interrupt driven off of a timer in order to have both LEDs on at the same time. " )
    Last edited by sayzer; - 16th July 2010 at 12:24. Reason: typo
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

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