summaryrefslogtreecommitdiff
path: root/CODE/debug/IR/IR_sens2/IR_sens2.ino
diff options
context:
space:
mode:
authorrobosoccer <robosoccer@mendelcollege.nl>2025-03-20 15:20:27 +0100
committerrobosoccer <robosoccer@mendelcollege.nl>2025-03-20 15:20:27 +0100
commit20c32f0508838361ecf899dfc6f5f3b70abede8a (patch)
treea38d7eac4d7de697b5a000b8986ec9f49b7a5e96 /CODE/debug/IR/IR_sens2/IR_sens2.ino
parent7e9328765f41a6055a722285678bc6bc09963c07 (diff)
downloadrobotica-20c32f0508838361ecf899dfc6f5f3b70abede8a.tar.gz
robotica-20c32f0508838361ecf899dfc6f5f3b70abede8a.zip
things
Diffstat (limited to 'CODE/debug/IR/IR_sens2/IR_sens2.ino')
-rw-r--r--CODE/debug/IR/IR_sens2/IR_sens2.ino36
1 files changed, 36 insertions, 0 deletions
diff --git a/CODE/debug/IR/IR_sens2/IR_sens2.ino b/CODE/debug/IR/IR_sens2/IR_sens2.ino
new file mode 100644
index 0000000..5fb4e9f
--- /dev/null
+++ b/CODE/debug/IR/IR_sens2/IR_sens2.ino
@@ -0,0 +1,36 @@
+int ir9 = 0
+int ir10 = 1
+int ir11 = 9
+int ir12 = 2
+int ir13 = 3
+int ir14 = 4
+int ir15 = 5
+int ir16 = 8
+
+int dir1 = 1; // data IR1
+int dir2 = 1; // data IR2
+int dir3 = 1; // etc
+int dir4 = 1;
+int dir5 = 1;
+int dir6 = 1;
+int dir7 = 1;
+int dir8 = 1;
+
+volatile long IRcount1 = 0;
+volatile long IRcount2 = 0;
+volatile long IRcount3 = 0;
+volatile long IRcount4 = 0;
+volatile long IRcount5 = 0;
+volatile long IRcount6 = 0;
+volatile long IRcount7 = 0;
+volatile long IRcount8 = 0;
+
+void setup() {
+ // put your setup code here, to run once:
+
+}
+
+void loop() {
+ // put your main code here, to run repeatedly:
+
+}