Exemplo n.º 1
0
 public void onLedState(long time, DicePlusConnector.LedFace ledMask, long animationId, int type, string errorMsg)
 {
     foreach (IDicePlusListener listener in listeners)
     {
         listener.onLedState(this, time, ledMask, animationId, type, errorMsg);
     }
 }
 public override void onLedState(DicePlus dicePlus, long time, DicePlusConnector.LedFace ledMask, long animationId, int type, string errorMsg)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Sends standard LED animation request
 /// </summary>
 /// <param name='ledMask'>
 /// which LEDs to run animation on
 /// </param>
 /// <param name='priority'>
 /// animation with lower value overrides other, values: 0 - 255
 /// </param>
 /// <param name='animation'>
 /// standard animation type
 /// </param>
 public void runStandardAnimation(DicePlusConnector.LedFace ledMask, int priority,
                                  DicePlusConnector.AnimationType animation)
 {
     dpc.runStandardAnimation(this, ledMask, priority, animation);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Sends fade LED animation request
 /// </summary>
 /// <param name='ledMask'>
 /// which LEDs to run animation on
 /// </param>
 /// <param name='priority'>
 /// animation with lower value overrides other, values: 0 - 255
 /// </param>
 /// <param name='color'>
 /// color to be faded
 /// </param>
 /// <param name='fadeInOutTime'>
 /// time in ms LED is fading in/out, values: 0 - 65535
 /// </param>
 /// <param name='pauseTime'>
 /// time in ms LED stays at full bright before fading out, values: 0 - 65535
 /// </param>
 public void runFadeAnimation(DicePlusConnector.LedFace ledMask, int priority,
                              Color color, int fadeInOutTime, int pauseTime)
 {
     dpc.runFadeAnimation(this, ledMask, priority, color, fadeInOutTime, pauseTime);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Sends blink LED animation request
 /// </summary>
 /// <param name='ledMask'>
 /// which LEDs to run animation on
 /// </param>
 /// <param name='priority'>
 /// animation with lower value overrides other, values: 0 - 255
 /// </param>
 /// <param name='color'>
 /// color to be blinked
 /// </param>
 /// <param name='ledOnPeriod'>
 /// time in ms LED is ON, values: 0 - 65535
 /// </param>
 /// <param name='ledCyclePeriod'>
 /// time in ms one blink cycle lasts, values: 0 - 65535
 /// </param>
 /// <param name='blinkNumber'>
 /// number of blinks, values: 0 - 255
 /// </param>
 public void runBlinkAnimation(DicePlusConnector.LedFace ledMask, int priority,
                               Color color, int ledOnPeriod, int ledCyclePeriod, int blinkNumber)
 {
     dpc.runBlinkAnimation(this, ledMask, priority, color, ledOnPeriod, ledCyclePeriod, blinkNumber);
 }