Class Led¶
-
class
Led
¶ Public Functions
-
uint8_t
getNumber
()¶ - Returns
the number of the LED
-
void
setNumber
(uint8_t)¶ - Parameters
number – of the LED
-
uint16_t
getIntensity
()¶ - Returns
intensity of the LED
-
void
setIntensity
(uint16_t)¶ - Parameters
intensity – of the LED
-
uint8_t
getPointer
()¶ - Returns
pointer to the intensity table
-
void
setPointer
(uint8_t)¶ - Parameters
pointer – to the intensities
-
uint8_t
getProgmemIndex
()¶ - Returns
pointer to the intensity table
-
void
setProgmemIndex
(uint8_t)¶ - Parameters
pointer – to the intensities
-
bool
getDarker
()¶ - Returns
darker of the LED
-
void
setDarker
(bool)¶ - Parameters
darker – if the brightness of the LED decreases
-
void
invertDarker
()¶ inverts darker
-
bool
getWaitAtMinIntensity
()¶ - Returns
waitAtMinIntensity
-
void
setWaitAtMinIntensity
(bool)¶ - Parameters
waitAtMinIntensity – this LED waits at its ninimal brightness
-
bool
getWaitAtMaxIntensity
()¶ - Returns
waitAtMaxIntensity
-
void
setWaitAtMaxIntensity
(bool)¶ - Parameters
WaitAtMaxIntensity – this LED waits at its naximal brightness
-
uint8_t
getCyclesAtMinIntensity
()¶ - Returns
cyclesAtMinIntensity of the LED
-
void
setCyclesAtMinIntensity
(uint8_t)¶ - Parameters
cyclesAtMinIntensity – this LED waits this cycles at its ninimal brightness
-
uint8_t
getCyclesAtMaxIntensity
()¶ - Returns
cyclesAtMaxIntensity this LED waits at its ninimal brightness
-
void
setCyclesAtMaxIntensity
(uint8_t)¶ - Parameters
cyclesAtMaxIntensity – this LED waits this cycles at its maximal brightness
-
bool
getDarkerHasChanged
()¶ - Returns
_darkerHasChanged
-
bool
getIntensityAtMin
()¶ - Returns
_intensityAtMin
-
bool
getIntensityAtMax
()¶ - Returns
_intensityAtMax
-
void
increaseIntensity
()¶ Increases the intensity.
If the new intensity is equal to the maximal intensity, the intensities will be decreased in the next step.
-
void
decreaseIntensity
()¶ Decreases the intensity.
If the new intensity is equal to the minimal intensity, the intensities will be increased in the next step.
-
void
changeIntensity
()¶ Increases or decreases the member _intensity.
In dependency of the boolean value of darker the method increaseIntesity or decreaseIntensity is called.
-
void
increasePointer
()¶ Increases the pointer to the intensities.
If the new value of the pointer is equal to the size of the array, the pointer will be decreased in the next step;
-
void
decreasePointer
()¶ Decreases the pointer to the intensities.
If the new value of the pointer is equal to zero, the pointer will be increased in the next step.
-
void
changePointer
()¶ Increases or decreases the pointer.
In dependency of the boolean value of darker the method increasePointer or decreasePointer is called.
-
void
pointer2int
()¶ The array with the intensitys is included in the header file ‘
intensities.h’. This file has been created by the python script ‘progmen_creator.py’.- Returns
the content of the PROGMEM array.
-
bool
letSpeedControlCount
()¶ Call counter method of class SpeedControl.
The property counter of the aggregated class SpeedControl is decreased. If its value is equal to zero, true is returned. The variable is the initialized with the duration.
-
void
setSpeedControlDuration
(uint8_t)¶ - Parameters
duration – time at one intensity (property of the class SpeedControl)
-
uint8_t
getSpeedControlDuration
()¶ - Returns
duration (the time at one intensity, property of the class SpeedControl)
-
void
setSpeedControlCounter
(uint8_t)¶ - Parameters
counter – If a longer duration is wanted, the counter can be set to a value greater than duration.
-
uint8_t
getSpeedControlCounter
()¶ - Returns
counter counts from duration to zero
-
uint8_t