예제 #1
0
void LedDriver_TurnOn(int ledNumber)
{
    if (IsLedOutOfBounds(ledNumber))
        return;

    setLedImageBit(ledNumber);
}
예제 #2
0
void LedDriver_TurnOn(int ledNumber)
{
	if(IsLedOutOfBounds(ledNumber))
	{
		return;
	}

	setLedImageBit(ledNumber);
	updateHardware();
}
예제 #3
0
파일: LedDriver.c 프로젝트: hitsk26/TDDinC
void LedDriver_TurnOn(int ledNumber)
{
	if(IsLedOutOfBounds(ledNumber))
	{
		RUNTIME_ERROR("LED Driver: out-of-bounds LED", -1);
		return;
	}
	setLedImageBit(ledNumber);
	updateHardWare();
}