This repository was 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
Expand file tree
/
Copy pathProgram.generated.cs
More file actions
54 lines (45 loc) · 2.25 KB
/
Program.generated.cs
File metadata and controls
54 lines (45 loc) · 2.25 KB
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
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace PR {
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.");
}
}
}