need help with cog running right
Andy "A Man With A Plan"
Posts: 45
I have attached a copy of my code and was wondering if anyone could find an issue with it. What I am experiencing is that it works perfect with the usb attached to the computer but when I unplug it, it does not run right. It pulses if this makes any since and does not run right. Hopefully someone can help !!! Thanks. I am using the propeller starter kit.
Andy
Andy
Comments
Easiest solution is not to "start" that object so that it won't put power on the transmit pin...
Other solution, like Mike said, is to test pin 30 (I think it's 30) for a logic one (meaning the USB cable is connected) and only enable the serial debugging interface if it is...
Another solution is to put a pull-up or down on pin 31... But, I think that'd be hard on the board you have...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm