program.cs
来自「This is a Windows CE 6.0 Board Support P」· CS 代码 · 共 30 行
CS
30 行
//---------------------------------------------------------------------------------
// Copyright (c) 2008 David Vescovi. All rights reserved.
//
// Exercise the notification LED via OpenNETCF API
//
//---------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
using OpenNETCF.WindowsCE.Notification;
namespace Notification_LED_test
{
class Program
{
static void Main(string[] args)
{
int ledCount;
Led led = new Led();
ledCount = led.Count;
led.SetLedStatus(0, Led.LedState.On);
led.SetLedStatus(0, Led.LedState.Off);
led.SetLedStatus(0, Led.LedState.Blink);
System.Threading.Thread.Sleep(5000);
led.SetLedStatus(0, Led.LedState.Off);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?