ECLed Class Reference

Simulates a LED. More...

#include <ecled.h>

Inheritance diagram for ECLed:

Inheritance graph
[legend]
Collaboration diagram for ECLed:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ECLed (ICNDocument *icnDocument, bool newItem, const char *id=0)
 ~ECLed ()
virtual void dataChanged ()
virtual void stepNonLogic ()
virtual bool doesStepNonLogic () const

Static Public Member Functions

static Itemconstruct (ItemDocument *itemDocument, bool newItem, const char *id)
static LibraryItemlibraryItem ()
static uint brightness (double i)

Detailed Description

Simulates a LED.

Author:
David Saxton

Definition at line 21 of file ecled.h.


Member Function Documentation

uint ECLed::brightness ( double  i  )  [static]

Returns the brightness for the given current, from 255 (off) -> 0 (on)

Definition at line 128 of file ecled.cpp.

Referenced by MatrixDisplay::stepNonLogic(), ECSevenSegment::stepNonLogic(), stepNonLogic(), and BiDirLED::stepNonLogic().

virtual bool ECLed::doesStepNonLogic (  )  const [inline, virtual]

If reinherit (and use) the stepNonLogic function, then you must also reinherit this function so that it returns true. Else your component will not get called.

Reimplemented from Component.

Definition at line 36 of file ecled.h.


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:40 2007 for KTechLab by  doxygen 1.5.1