• Witaj na Forum Arduino Polska! Zapraszamy do rejestracji!
  • Znajdziesz tutaj wiele informacji na temat hardware / software.
Witaj! Logowanie Rejestracja


Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
błedy kompilacji
#1
Treść:
"Cześć wszystkim jestem całkiem zielony i nie bardzo wiem do którego miejsca w forum puść z problemem generalnie wyświetla mi sie coś takiego i nie wiem jak to ogarnąć macie może jakąś rade? //C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope

int RECV_PIN = TKD2; // the pin the IR receiver is connected to

^

Użycie biblioteki RobotIRremote w wersji 1.0.2 w folderze: C:\Program Files (x86)\Arduino\libraries\RobotIRremote 
exit status 1
Błąd kompilacji.
//"
 
Odpowiedź
#2
Cześć.

TKD2 nie jest zadeklarowany w programie daj pełny kod to pomożemy
Ważne aby robić co się lubi albo lubić co się robi .
Arduino UNO, TINY, PRO MINI
Pomoc nagradzamy punktami reputacji Wink
 
Odpowiedź
#3
(12-11-2015, 20:45)JasQ napisał(a): Cześć.

TKD2 nie jest zadeklarowany w programie daj pełny kod to pomożemy

Kod:
#include <IRremote.h>
#include <IRremoteInt.h>
#include <IRremoteTools.h>

/*
* IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
* An IR detector/demodulator must be connected to the input RECV_PIN.
* Version 0.1 July, 2009
* Copyright 2009 Ken Shirriff
* http://arcfn.com
*/

#include <IRremote.h>

int RECV_PIN = 7;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()
{
 Serial.begin(9600);
 irrecv.enableIRIn(); // Start the receiver
}

void loop() {
 if (irrecv.decode(&results)) {
   Serial.println(results.value, HEX);
   irrecv.resume(); // Receive the next value
 }
 delay(100);
}
 
Odpowiedź
  


Skocz do:


Przeglądający: 1 gości