diff options
| author | Abel Tim <abel@abel-ms7c95.home> | 2025-03-20 20:16:00 +0100 |
|---|---|---|
| committer | Abel Tim <abel@abel-ms7c95.home> | 2025-03-20 20:16:00 +0100 |
| commit | d4a5a8e430abccc7a08861654dac21ecec3eeb3d (patch) | |
| tree | 3053b527885a77434338910d48d8733f727083bf /CODE/debug/IR/communication/tx_seeed/tx_seeed.ino | |
| parent | 73cc3da30e15e061a26752c0f8967a64a86d99c6 (diff) | |
| download | robotica-d4a5a8e430abccc7a08861654dac21ecec3eeb3d.tar.gz robotica-d4a5a8e430abccc7a08861654dac21ecec3eeb3d.zip | |
send messages via serial
Diffstat (limited to 'CODE/debug/IR/communication/tx_seeed/tx_seeed.ino')
| -rw-r--r-- | CODE/debug/IR/communication/tx_seeed/tx_seeed.ino | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/CODE/debug/IR/communication/tx_seeed/tx_seeed.ino b/CODE/debug/IR/communication/tx_seeed/tx_seeed.ino index fe6d1da..c77e618 100644 --- a/CODE/debug/IR/communication/tx_seeed/tx_seeed.ino +++ b/CODE/debug/IR/communication/tx_seeed/tx_seeed.ino @@ -1,4 +1,5 @@ -long randNumber; +long randNumber1; +long randNumber2; void setup() { Serial.begin(9600); @@ -9,11 +10,19 @@ void setup() { } void loop() { - randNumber = random(300); - Serial.println("transmission test"); - Serial1.println("transmission test"); - Serial.println(randNumber); - Serial1.println(randNumber); + randNumber1 = random(999); + randNumber2 = random(1, 8); + Serial1.print("s"); + Serial1.print(randNumber2); + Serial1.print(", "); + Serial1.print(randNumber1); + Serial1.print("e"); + + Serial.print("s"); + Serial.print(randNumber2); + Serial.print(", "); + Serial.print(randNumber1); + Serial.println("e"); delay(1000); |
