diff --git a/test/test.ino b/test/test.ino index 705d181..164cca5 100644 --- a/test/test.ino +++ b/test/test.ino @@ -1,6 +1,6 @@ float v = 0; float a = 0; -float w = 0; +char buf[50]; void setup() { Serial.begin(115200); @@ -9,12 +9,8 @@ void setup() { void loop() { v = random(0, 5600) / 100.0; a = random(0, 5000) / 100.0; - w = v * a; - Serial.print("v = "); - Serial.println(v); - Serial.print("a = "); - Serial.println(a); - Serial.print("w = "); - Serial.println(w); + Serial.print(v, 2); + Serial.print(","); + Serial.println(a, 2); delay(500); }