ASMESDC2018
Public Member Functions | Protected Attributes | List of all members
LED Class Reference

#include <LED.h>

Collaboration diagram for LED:
Collaboration graph
[legend]

Public Member Functions

 LED (int, int, int, int, int, int)
 
void setup (int, int, int, int, int, int)
 
void setState (int, bool blink=false, int side=SIDE_BOTH)
 
void getState (void)
 

Protected Attributes

LEDState state
 
LEDPins pins
 

Detailed Description

Definition at line 51 of file LED.h.

Constructor & Destructor Documentation

LED::LED ( int  pin_left_red,
int  pin_left_green,
int  pin_left_blue,
int  pin_right_red,
int  pin_right_green,
int  pin_right_blue 
)

Definition at line 13 of file LED.cpp.

Member Function Documentation

void LED::getState ( void  )
void LED::setState ( int  des_state,
bool  blink = false,
int  side = SIDE_BOTH 
)

Definition at line 50 of file LED.cpp.

void LED::setup ( int  pin_left_red,
int  pin_left_green,
int  pin_left_blue,
int  pin_right_red,
int  pin_right_green,
int  pin_right_blue 
)

Definition at line 21 of file LED.cpp.

Member Data Documentation

LEDPins LED::pins
protected

Definition at line 61 of file LED.h.

LEDState LED::state
protected

Definition at line 60 of file LED.h.


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