Quote:
|
Originally Posted by Dillon Compton
Hmm. I attempted to use the code on the first page, after all the bugs were worked out and all, and it wont display to my userbyte on the OI- any ideas?
|
Well my final version worked ok so here it is:
Code:
while ( !IsEnabled() )
{
p4_trig = GetOIDInput ( 4 , 1 ) ;
if ( p4_trig )
{
if ( autoProgram < 8 )
{
autoProgram ++ ;
}
else
{
autoProgram = 0 ;
}
while ( p4_trig )
{
p4_trig = GetOIDInput ( 4 , 1 ) ;
}
}
SetUserDisplay ( autoProgram ) ;
}
Uh, just to ask a dumb question: Did you switch the OI to u-mode? I'm sure you did, just checking though. Also make sure the variable "autoProgram" is set as a global unsigned char.