Digigurdy-baz
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SimpleLED Class Reference

#include <simpleled.h>

Public Member Functions

 SimpleLED (int pin)
 Cosntructor. SimpleLED is meant for controlling a LED connected to a given pin. More...
 
void on ()
 Turns the LED on. More...
 
void off ()
 Turns the LED off. More...
 
void disable ()
 Disabled the LED. If disabled, on() and off() will not respond. More...
 
void enable ()
 Enables the LED. More...
 

Constructor & Destructor Documentation

◆ SimpleLED()

SimpleLED::SimpleLED ( int  pin)

Cosntructor. SimpleLED is meant for controlling a LED connected to a given pin.

Parameters
pinThe digital pin to use

Member Function Documentation

◆ disable()

void SimpleLED::disable ( )

Disabled the LED. If disabled, on() and off() will not respond.

◆ enable()

void SimpleLED::enable ( )

Enables the LED.

◆ off()

void SimpleLED::off ( )

Turns the LED off.

◆ on()

void SimpleLED::on ( )

Turns the LED on.


The documentation for this class was generated from the following files: