Zino logo Zino

Zino LED class LED

Overview

LEDs are the fun things to play with 🤓, for that, the LED class handles some cool features that you might need to control the LEDs very easily.

Example

#include <Arduino.h>
#include <Pin.h>
#include <LED.h>

Pin ledPin(PortB, 4); // same as: Pin ledPin(12);
LED led;

void setup()
{
    led.init(ledPin);
}

void loop()
{
    led.on();
    led.off();
    // or
    led.toggle();
}