Shop OBEX P1 Docs P2 Docs Learn Events
7 segment led — Parallax Forums

7 segment led

Pierre20Pierre20 Posts: 5
edited 2009-08-30 01:10 in BASIC Stamp
Hi

With bs2, ·I want to control· 7 segment led common·cathode. If I put the cathode in VSS,·it works. However I want to put the cathode in P0·but it doesn't work even if I write IN0 = 0. I dont know why ??

Thank

Pierre



·

Comments

  • $WMc%$WMc% Posts: 1,884
    edited 2009-08-30 00:44
    Pierre20

    Try

    LOW 0

    instead of IN0

    __________$WMc%______

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Truth is out there············································ BoogerWoods, FL. USA
  • $WMc%$WMc% Posts: 1,884
    edited 2009-08-30 00:47
    Pierre20

    IN0 = 0 makes the I/O pin an INPUT. You need an OUTPUT

    LOW is 0 or close to Vss and the pin your using is pin 0

    If you wanted pin 0 to be a 1 or close to Vdd than you could use this

    HIGH 0

    _I Hope this helps_____$WMc%_____

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Truth is out there············································ BoogerWoods, FL. USA

    Post Edited ($WMc%) : 8/30/2009 12:58:21 AM GMT
  • Pierre20Pierre20 Posts: 5
    edited 2009-08-30 01:10
    Thank



    It works.



    Pierre··········

    Montreal, Canada
Sign In or Register to comment.