2 LEDs and one pin left


Results 1 to 40 of 54

Threaded View

  1. #7
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rsocor01 View Post

    However, the bad news is that Sayzer is right. You can't get three states "0,0", "0,1", and "1,0" with only one MCU pin.
    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
    Name:  dual-led3-3.PNG
Views: 2466
Size:  13.9 KB
    Code:
    BLINK:  
         HIGH PORTA.0 
         PAUSE 250 
         LOW PORTA.0  
         PAUSE 250   
         TRISA.0 = 1 
         PAUSE 2000    
         GOTO BLINK
    Last edited by ScaleRobotics; - 13th July 2010 at 22:48.

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