Skip to content

jasminlapalme/RGBLed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RGBLed

Simple Arduino class to control an RGB Led.

Here is a sample code on how to use this code

RGBLed led(24, 25, 26);

void setup()
{
	// Will test all the colors
	led.testLed();
}

void loop()
{
	// Set the color to yellow
	led.setColor(RGBLed::YELLOW, RGBLed::ON);

	if (test)
	{
		// Set the color to orange until process() is finished and the led will
		// come back to the state it was before
		RGBLed::state st(&led, RGBLed::ORANGE, RGBLed::ON);
		process();
	}
}

About

Simple Arduino class to control an RGB Led

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages