Exemplo n.º 1
0
 public ModeButton()
     : base()
 {
     ActiveModes.Add(ActiveModeType.Design);
     ActiveModes.Add(ActiveModeType.Html);
     ActiveModes.Add(ActiveModeType.Preview);
 }
Exemplo n.º 2
0
 private void speedRainbowButton_Click(object sender, RoutedEventArgs e)
 {
     cube.SetSpeedStripLedColors(LedColorLists.rainbowColors);
     currentMode = ActiveModes.SpeedRainbow;
     cube.SetColor(Colors.Black);
     cube.Update();
     Brightness = 127;
     UpdateSliderBrightness();
 }
Exemplo n.º 3
0
 private void volumesButton_Click(object sender, RoutedEventArgs e)
 {
     ResetLevels();
     currentMode = ActiveModes.Volumes;
     cube.SetColor(Colors.Black);
     cube.Update();
     Brightness = 30;
     UpdateSliderBrightness();
 }
Exemplo n.º 4
0
 private void speedAlternatingButton_Click(object sender, RoutedEventArgs e)
 {
     cube.bottomZone.SetSpeedStripLedColors(LedColorLists.redAlternating);
     cube.midZone.SetSpeedStripLedColors(LedColorLists.greenAlternating);
     cube.topZone.SetSpeedStripLedColors(LedColorLists.blueAlternating);
     currentMode = ActiveModes.SpeedAlternating;
     cube.SetColor(Colors.Black);
     cube.Update();
     Brightness = 127;
     UpdateSliderBrightness();
 }
Exemplo n.º 5
0
 public MainPage()
 {
     this.InitializeComponent();
     leftStrip            = new DotStarStrip(78, "SPI0");
     rightStrip           = new DotStarStrip(78, "SPI1");
     cube                 = new Cube(leftStrip, rightStrip);
     AutoCycle            = true;
     Reverse              = false;
     random               = new Random();
     currentMode          = ActiveModes.SpeedRainbow;
     idleMode             = IdleModes.Rainbow;
     lastChange           = DateTime.UtcNow;
     quietTime            = DateTime.UtcNow;
     changeTime           = TimeSpan.FromSeconds(15);
     idleChangeTime       = TimeSpan.FromSeconds(30);
     Idle                 = false;
     runningIdleAnimation = false;
 }
 protected DesignModeSelectButton()
     : base()
 {
     ActiveModes.Add(ActiveModeType.Design);
 }
Exemplo n.º 7
0
 public DesignModeBoxButton()
     : base()
 {
     ActiveModes.Add(ActiveModeType.Design);
 }