コード例 #1
0
 public void PhysicsUpdated(object sender, PhysicsEventArgs e)
 {
     arduinoData.led_color = neoPixelRpm.CalcLinearLeds(e.Physics.Rpms);
     arduinoData.matrix_0  = GEARS[e.Physics.Gear];
     arduinoData.digit_1   = sevenSegment.ConvertFromDecimal(e.Physics.SpeedKmh);
     serialConnection.Write(ACStructs.structToBytes(arduinoData));
 }
コード例 #2
0
 public void Update()
 {
     serialConnection.Write(ACStructs.structToBytes(arduinoData));
 }