2 LEDs used Bi-directionally


Results 1 to 15 of 15

Threaded View

  1. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,156


    Did you find this post helpful? Yes | No

    Default Re: 2 LEDs used Bi-directionally

    I feel like a retard. So...

    PIN --- DUAL LEDs --- RESISTOR --- 5VDC

    PIN defined as output:

    HIGH will source, turn on outgoing LED (like we always do)
    LOW will sink, turn on incoming LED


    I don't get how I'm to set ports/TRIS at both ends so neither LED will turn on. I've gone through that thread and a few others all evening but I can't see the forest through the trees apparently.


    Quote Originally Posted by rsocor01 View Post
    TRISx = 1 is used to read an analog input, ex: A/D input. ...
    Even if my ports are defined as digital?

    Robert
    Last edited by Demon; - 12th January 2014 at 05:01. Reason: analog VS digital

Similar Threads

  1. 32 LEDs with less than 20mA
    By Demon in forum Off Topic
    Replies: 11
    Last Post: - 23rd January 2014, 03:28
  2. Leds on/off
    By Leonardo in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 2nd September 2009, 21:36
  3. Two LEDs on one Pin
    By modifyit in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 6th June 2006, 13:32
  4. 8 Leds
    By leonel in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 24th June 2005, 22:15
  5. Want some help with LEDs
    By Srigopal007 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 23rd November 2004, 20:46

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