program behavior / what am i doing wrong?
agfa
Posts: 295
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?
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
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Still some PropSTICK Kit bare PCBs left!