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)); }
public void Update() { serialConnection.Write(ACStructs.structToBytes(arduinoData)); }