Seeed-Studio / RFID_Library

125Khz RFID library for Arduino
MIT License
60 stars 29 forks source link

compilation error when compiling the include example #1

Closed mcousine closed 3 weeks ago

mcousine commented 10 years ago

RFID_UART:12: error: 'SeeedRFID' does not name a type RFID_UART:13: error: 'RFIDdata' does not name a type RFID_UART.ino: In function 'void loop()': RFID_UART:21: error: 'RFID' was not declared in this scope RFID_UART:22: error: 'tag' was not declared in this scope

mcousine commented 10 years ago

Should be quote not <<

include "SoftwareSerial.h"

include "SeeedRFID.h"

not

include <<>>

include <>

i'm new in the include but if you place de comma it's search into the directory which is less error prone for newbies.... like me

yexiaobo-seeedstudio commented 10 years ago

I put my code to Arduino/libraries, so it's not problem when include <SeeedRFID.h> :smile: