-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathProgram.cs
More file actions
23 lines (21 loc) · 714 Bytes
/
Program.cs
File metadata and controls
23 lines (21 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using Raspberry;
namespace Test.Board
{
class Program
{
static void Main()
{
var board = Raspberry.Board.Current;
if (!board.IsRaspberryPi)
Console.WriteLine("System is not a Raspberry Pi");
else
{
Console.WriteLine("Raspberry Pi running on {0} processor", board.Processor);
Console.WriteLine("Firmware rev{0}, board model {1} ({2})", board.Firmware, board.Model, ModelExtensionMethods.GetDisplayName(board.Model) ?? "Unknown");
Console.WriteLine();
Console.WriteLine("Serial number: {0}", board.SerialNumber);
}
}
}
}