public interface

DimmingLed

implements Led
com.datalogic.extension.selfshopping.led.DimmingLed

Class Overview

Interface exposing the API of a dimming LED.

Summary

Public Methods
abstract void setBrightness(int brightness)
Set a specific LED brightness.
abstract void startSequence(int numCycles, DimmingSequence sequence)
Starts the specified dimming sequence, constituted of a series of (time, brightness) pairs.
[Expand]
Inherited Methods
From interface com.datalogic.extension.selfshopping.led.Led

Public Methods

public abstract void setBrightness (int brightness)

Added in revision 2

Set a specific LED brightness.

Parameters
brightness A brightness value (in percentage).

public abstract void startSequence (int numCycles, DimmingSequence sequence)

Added in revision 2

Starts the specified dimming sequence, constituted of a series of (time, brightness) pairs. The brightness will be calculated by interpolating between the time intervals, in order to have a smooth dimming of the LED. The sequence will repeat for the specified number of cycles.

Parameters
numCycles The number of dimming cycles to execute (-1 = infinite).
sequence The DimmingSequence to start.