Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Simple question regarding OI LED's (http://www.chiefdelphi.com/forums/showthread.php?t=62763)

Tom Line 29-01-2008 08:53

Simple question regarding OI LED's
 
One of my programmers was playing with the LED's on the OI board, but was curious.

He put the statement Pwm1_red=1; in the default routine, and the Led did not light up red. I was at a loss as to why it didn't work. So, what's up with this?

Chaos in a Can 29-01-2008 09:17

Re: Simple question regarding OI LED's
 
That should work...

If this is happening every loop, either the light is being turned back off or the light doesn't work.
Make sure that no other code after that points turns the light back off, and try turning on all the other lights.

Alan Anderson 29-01-2008 09:47

Re: Simple question regarding OI LED's
 
The OI feedback LEDs share data space with the user display byte. You can't use them both at the same time. If the OI is showing the user byte, none of the LEDs will light.

Tom Line 29-01-2008 12:03

Re: Simple question regarding OI LED's
 
Aha! That would make sense. It stopped working after we added some code that prints the PMW values of our choice out to the user byte for debug. Thank you!


All times are GMT -5. The time now is 09:25.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi