コード例 #1
0
 private void ledBlueOn(object sender, RoutedEventArgs e)
 {
     Led.Pattern pattern = new Led.Pattern();
     mbl_mw_led_load_preset_pattern(ref pattern, Led.PatternPreset.PULSE);
     mbl_mw_led_write_pattern(mwBoard, ref pattern, Led.Color.BLUE);
     mbl_mw_led_play(mwBoard);
 }
コード例 #2
0
 private void ledGreenOn(object sender, RoutedEventArgs e)
 {
     Led.Pattern pattern = new Led.Pattern();
     mbl_mw_led_load_preset_pattern(ref pattern, Led.PatternPreset.BLINK);
     mbl_mw_led_write_pattern(mwBoard, ref pattern, Led.Color.GREEN);
     mbl_mw_led_play(mwBoard);
 }
コード例 #3
0
 private void ledRedOn(object sender, RoutedEventArgs e)
 {
     Led.Pattern pattern = new Led.Pattern();
     mbl_mw_led_load_preset_pattern(ref pattern, Led.PatternPreset.SOLID);
     mbl_mw_led_write_pattern(mwBoard, ref pattern, Led.Color.RED);
     mbl_mw_led_play(mwBoard);
 }
コード例 #4
0
 private void ledBlueOn(object sender, RoutedEventArgs e) {
     Led.Pattern pattern = new Led.Pattern();
     Led.LoadPresetPattern(ref pattern, Led.PatternPreset.PULSE);
     Led.WritePattern(mwBoard, ref pattern, Led.Color.BLUE);
     Led.Play(mwBoard);
 }
コード例 #5
0
 private void ledGreenOn(object sender, RoutedEventArgs e) {
     Led.Pattern pattern = new Led.Pattern();
     Led.LoadPresetPattern(ref pattern, Led.PatternPreset.BLINK);
     Led.WritePattern(mwBoard, ref pattern, Led.Color.GREEN);
     Led.Play(mwBoard);
 }
コード例 #6
0
 private void ledRedOn(object sender, RoutedEventArgs e) {
     Led.Pattern pattern = new Led.Pattern();
     Led.LoadPresetPattern(ref pattern, Led.PatternPreset.SOLID);
     Led.WritePattern(mwBoard, ref pattern, Led.Color.RED);
     Led.Play(mwBoard);
 }