This repository has been archived by the owner on Jun 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.generated.cs
60 lines (51 loc) · 2.35 KB
/
Program.generated.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//------------------------------------------------------------------------------
// <auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.42000
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le code est régénéré.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GR {
using Gadgeteer;
using GTM = Gadgeteer.Modules;
public partial class Program : Gadgeteer.Program
{
/// <summary>The USB Client DP module using socket 1 of the mainboard.</summary>
private Gadgeteer.Modules.GHIElectronics.USBClientDP usbClientDP;
/// <summary>The Display TE35 module using sockets 14, 13, 12 and 10 of the mainboard.</summary>
private Gadgeteer.Modules.GHIElectronics.DisplayTE35 displayTE35;
/// <summary>The Display TE35 module (not connected).</summary>
private Gadgeteer.Modules.GHIElectronics.DisplayTE35 displayTE352;
/// <summary>This property provides access to the Mainboard API. This is normally not necessary for an end user program.</summary>
protected new static GHIElectronics.Gadgeteer.FEZSpider Mainboard
{
get
{
return ((GHIElectronics.Gadgeteer.FEZSpider)(Gadgeteer.Program.Mainboard));
}
set
{
Gadgeteer.Program.Mainboard = value;
}
}
/// <summary>This method runs automatically when the device is powered, and calls ProgramStarted.</summary>
public static void Main()
{
// Important to initialize the Mainboard first
Program.Mainboard = new GHIElectronics.Gadgeteer.FEZSpider();
Program p = new Program();
p.InitializeModules();
p.ProgramStarted();
// Starts Dispatcher
p.Run();
}
private void InitializeModules()
{
this.usbClientDP = new GTM.GHIElectronics.USBClientDP(1);
this.displayTE35 = new GTM.GHIElectronics.DisplayTE35(14, 13, 12, 10);
Microsoft.SPOT.Debug.Print("The module \'displayTE352\' was not connected in the designer and will be null.");
}
}
}