Arduino ile ır alıcı verici kumandalı robot yapmak istemiştim kodları internetten kopyaladım yukle dedikten sonra surekli


"C:Program Files (x86)ArduinolibrariesRobotIRremotesrcIRremoteTools .cpp:5:16: error: 'TKD2' was not declared in this scope
int RECV_PIN = TKD2; // the pin the IR receiver is connected to
^~~~
C:Program Files (x86)ArduinolibrariesRobotIRremotesrcIRremoteTools .cpp:5:16: note: suggested alternative: 'TWD2'
int RECV_PIN = TKD2; // the pin the IR receiver is connected to
^~~~
TWD2
exit status 1
Arduino Uno kartı icin derleme hatası."


hatasını veriyor sorunun ne olduğunu bulamadım.


[CODE title="Kodlar"]
#include
#include
#include



const int RECV_PIN = 2;

//L298N Bağlantısı
const int SolMotor1 = 5; // L298N'in IN1 Girişi
const int SolMotor2 = 6; // L298N'in IN2 Girişi
const int SolMotorEN = 9; // L298N'in ENA Girişi
const int SagMotor1 = 7; // L298N'in IN3 Girişi
const int SagMotor2 = 8; // L298'in IN4 Girişi
const int SagMotorEN = 10; // L298'in ENB Girişi

//HC-SR04 Bağlantısı
const int echoPin = 11;
const int trigPin = 12;

int Hiz = 255;

IRrecv irrecv(RECV_PIN);
decode_results results;

#define CH1 0xFFA25D
#define CH 0xFF629D
#define CH2 0xFFE21D
#define PREV 0xFF22DD
#define NEXT 0xFF02FD
#define PLAYPAUSE 0xFFC23D
#define VOL1 0xFFE01F
#define VOL2 0xFFA857
#define EQ 0xFF906F
#define BUTON0 0xFF6897
#define BUTON100 0xFF9867
#define BUTON200 0xFFB04F
#define BUTON1 0xFF30CF
#define BUTON2 0xFF18E7
#define BUTON3 0xFF7A85
#define BUTON4 0xFF10EF
#define BUTON5 0xFF38C7
#define BUTON6 0xFF5AA5
#define BUTON7 0xFF42BD
#define BUTON8 0xFF4AB5
#define BUTON9 0xFF52AD

void setup()


void loop()
if (Hiz >= 0 && Hiz