public static void enableLedBreath(LEDPosition id, int interval, int ratio)
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        androidJavaClass.CallStatic("enableLedBreath", (int)id, interval, ratio);
#else
        Debug.Log("Mibo.enableLedBreath(" + id + ", " + interval + ", " + ratio + ");");
#endif
    }
    public static void enableLed(LEDPosition id, bool enable)
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        androidJavaClass.CallStatic("enableLed", (int)id, enable? 1 : 0);
#else
        Debug.Log("Mibo.enableLed(" + id + ", " + enable + ");");
#endif
    }
    public static void setLedColor(LEDPosition id, Color color)
    {
#if UNITY_ANDROID && !UNITY_EDITOR
        Color32 color32 = color;
        androidJavaClass.CallStatic("setLedColor", (int)id, (int)color32.a, (int)color32.r, (int)color32.g, (int)color32.b);
#else
        Debug.Log("Mibo.setLedColor(" + id + ", " + color + ");");
#endif
    }
Example #4
0
        public bool Fade(Color color, TimeSpan fadeDuration, LEDPosition ledPosition)
        {
            var command = new FadeToColorCommand(color, fadeDuration, ledPosition);

            return(commandBus.SendCommand(command));
        }
Example #5
0
        public bool Fade(Color color, TimeSpan fadeDuration, LEDPosition ledPosition)
        {
            var command = new FadeToColorCommand(color, fadeDuration, ledPosition);

            return commandBus.SendCommand(command);
        }
 public FadeToColorCommand(Color color, Blink1Duration duration, LEDPosition ledPosition)
 {
     this.color = color;
     this.duration = duration;
     this.ledPosition = ledPosition;
 }
 public FadeToColorCommand(Color color, Blink1Duration duration, LEDPosition ledPosition)
 {
     this.color       = color;
     this.duration    = duration;
     this.ledPosition = ledPosition;
 }