Sierra Wireless Writing an embedded application loader Instrukcja Użytkownika Strona 78

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 102
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 77
GHI Electronics,LLC Embedded Master User Manual
Hardware and Software Library
using GHIElectronics.System;
using GHIElectronics.System.SystemDevices;
namespace MyNamespace
{
class Program
{
public static void Main()
{
// a mouse
Mouse mouse;
// must start system first, no event is associated
SystemManager.Start(null);
// get a list of devices
Device[] devices = SystemManager.GetDevices();
// look for a Mouse and initialize it.
foreach (Device device in devices)
{
if (device.deviceType == DeviceType.Mouse)
{
mouse = new Mouse(device);
break;
}
}
Thread.Sleep(Timeout.Infinite);
}
}
}
Example
Using event driven system.
Rev. 2.06 TFT Page 78 of 102 www.ghielectronics.com
Przeglądanie stron 77
1 2 ... 73 74 75 76 77 78 79 80 81 82 83 ... 101 102

Komentarze do niniejszej Instrukcji

Brak uwag