예제 #1
0
        static void Main(string[] args)
        {
            serialConnection = new SerialConnection(115200, 64);
            serialConnection.Connect(SerialConnection.GetArdunioPort());
            acClient = new ACClient(serialConnection);

            assetoCorsa = new AssettoCorsa();
            assetoCorsa.GraphicsInterval   = 10;
            assetoCorsa.StaticInfoUpdated += acClient.StaticInfoUpdated;
            assetoCorsa.PhysicsUpdated    += acClient.PhysicsUpdated;
            assetoCorsa.GraphicsUpdated   += acClient.GraphicsUpdated;
            assetoCorsa.Start();

            Console.ReadKey();
        }
예제 #2
0
 public ACClient(SerialConnection _serialConnection)
 {
     serialConnection = _serialConnection;
     neoPixelRpm      = new NeoPixel(16, 16);
     sevenSegment     = new SevenSegment();
 }