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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 102
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 47
GHI Electronics,LLC Embedded Master User Manual
Getting Started with Embedded Master
6.8.2 Example Application with GHI Library
This example reads the ADC using the library.
using System;
using Microsoft.SPOT;
using System.Threading;
using GHIElectronics.Hardware;
namespace MyConsoleApp
{
public class Program
{
public static void Main()
{
Debug.Print("Amazing Framework!");
// Make new ADC with range of values [0, 1023]
AnalogIn a0 = new AnalogIn(AnalogIn.AnalogInputPin.AIN0, 0, 1023);
// loop forever
while (true)
{
int value = a0.Read();
Debug.Print("Value = " + value);
Thread.Sleep(500); // sleep 500 ms
}
}
}
Rev. 2.06 TFT Page 48 of 102 www.ghielectronics.com
Przeglądanie stron 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 101 102

Komentarze do niniejszej Instrukcji

Brak uwag