This commit is contained in:
smayzy 2026-04-23 17:08:51 +02:00
parent 9575ec796d
commit 592334beb9

View File

@ -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);
}