Shop OBEX P1 Docs P2 Docs Learn Events
program behavior / what am i doing wrong? — Parallax Forums

program behavior / what am i doing wrong?

agfaagfa Posts: 295
edited 2008-07-26 18:09 in Propeller 1
attempting to trouble shoot a programming problem, i noticed yet another problem,·an LED on p0 was slightly glowing, not my intent.··I put a scope on it and i see a signal.· I stripped down the program and removed all reference to p0 and still the same thing.··thinking it was possably hardware i wrote a simple program that lights the·LED when a switch is closed (actually 2 switches & 2 LEDs) and this works.

i found a change that stopped the glow, but it doesn't make sense to me.· i would really like to know what i am doing wrong.

i've posted two programs the one where the LED glows·"dosnt_work.spin" and "works.spin" where the LED doesnt glow.· the only difference is, i changed the two outa[noparse][[/noparse]PINL] statements to outa[noparse][[/noparse]12].· Can someone explain this?

Comments

Sign In or Register to comment.