DGIO_setDiscrete(RedLED, ON); //your example 
a simple expression 
RedLED = ON;