From 1a7b4ce0629e186e515e042071dbfbf6b11f12de Mon Sep 17 00:00:00 2001 From: ChristianSW Date: Sun, 24 Mar 2024 14:40:16 +0100 Subject: [PATCH] const int --- IR_pneumatics.ino | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/IR_pneumatics.ino b/IR_pneumatics.ino index 1e26799..08e8565 100644 --- a/IR_pneumatics.ino +++ b/IR_pneumatics.ino @@ -19,12 +19,15 @@ // Left = 8; // Right = 90; +const int IR_pin = 11; int IrWert = 0; + +const int Z1_pin = 9; Servo pneu_servoZ1; void setup() { - IrReceiver.begin(11); - pneu_servoZ1.attach(9); + IrReceiver.begin(IR_pin); + pneu_servoZ1.attach(Z1_pin); pneu_servoZ1.write(50); Serial.begin(9600); Serial.println("verbunden");