An Arduino utility toolkit for handling common components in embedded projects — including LEDs, RGB control, buttons, timing, and color utilities.
- Download the .zip file of the latest release.
- In the Arduino IDE, go to Sketch > Include Library > Add .ZIP Library....
- Select the downloaded .zip file.
To update the library:
- Go to Documents > Arduino > libraries > Felix8A and delete the existing Felix8A folder from your libraries directory.
- Follow the installation steps above to install the latest version.
Add the following to the project's platformio.ini file:
lib_deps =
https://github.com/felixthecat8a/Felix8A.git
#include <Felix8A.h>
Felix8A::RGB rgbLED(9, 10, 11);
const uint32_t colorArray[] = {
Felix8A::Color::RED,
Felix8A::Color::ORANGE,
Felix8A::Color::GREEN,
Felix8A::Color::BLUE,
Felix8A::Color::WHITE
};
const Felix8A::Palette ColorPalette(colorArray);
void setup() {
// setup code
rgbLED.begin();
}
void loop() {
// loop code
for (int i = 0; i < ColorPalette.size(); i++) {
rgbLED.setRGB(ColorPalette[i]);
delay(1000);
}
}#include <Felix8A.h>
Felix8A::LED led(6);
const unsigned long blinkInterval = 1000;
unsigned long lastBlink = 0;
void setup() {
// setup code
led.begin();
}
void loop() {
// loop code
if (Time8A::every(blinkInterval, lastBlink)) {
led.toggle();
}
}#include <Felix8A.h>
Felix8A::LED led(6);
Felix8A::Button bttn(2);
void setup() {
// setup code
led.begin();
bttn.begin();
}
void loop() {
// loop code
bttn.update();
if (bttn.wasClicked()) {
led.toggle();
}
}