code/WPILib/DriverStation.cpp
/**
 * Set a value for the digital outputs on the Driver Station.
 * 
 * Control digital outputs on the Drivers Station. These values are typically used for
 * giving feedback on a custom operator station such as LEDs.
 * 
 * @param channel The digital output to set. Valid range is 1 - 8.
 * @param value The state to set the digital output.
 */
Set a value for the digital outputs on the Driver Station.

Control digital outputs on the Drivers Station. These values are typically used for
giving feedback on a custom operator station such as LEDs.

@param channel The digital output to set. Valid range is 1 - 8.
@param value The state to set the digital output.
Set a value for the digital outputs on the Driver Station . Control digital outputs on the Drivers Station . These values are typically used for giving feedback on a custom operator station such as LEDs . @param channel The digital output to set . Valid range is 1 - 8 . @param value The state to set the digital output .
void DriverStation::SetDigitalOut(UINT32 channel, bool value) 
{
	wpi_assert ((channel >= 1) && (channel <= 8));
	m_digitalOut &= ~(0x1 << (channel-1));
	m_digitalOut |= ((UINT8)value << (channel-1));
}
void DriverStation :: SetDigitalOut ( UINT32 channel , bool value ) { wpi_assert ( ( channel >= 1 ) && ( channel <= 8 ) ) ; m_digitalOut &= ~ ( 0x1 << ( channel - 1 ) ) ; m_digitalOut |= ( ( UINT8 ) value << ( channel - 1 ) ) ; }
Set a value for the digital outputs on the Driver Station.
Set a value for the digital outputs on the Driver Station .