summaryrefslogtreecommitdiff
path: root/CODE/debug/IR/communication/tx_seeed/tx_seeed.ino
blob: c77e6185e7250afefbb128adea192f8b723ef564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
long randNumber1;
long randNumber2;

void setup() {
  Serial.begin(9600);
  Serial1.begin(9600);
  delay(2500);
  randomSeed(analogRead(0));

}

void loop() {
  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);
  

}