Pages: [1]   Go Down
Author Topic: Dont understand message!?!?!  (Read 414 times)
0 Members and 1 Guest are viewing this topic.
Canada
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is the code: http://www.instructables.com/files/orig/FY1/Z49M/GH89ZZ95/FY1Z49MGH89ZZ95.tmp?utm_source=pdf&utm_campaign=files.

What does     #include <NewSoftSerial.h>    mean in this code???
This is for an RFID reader. I am using an arduino uno.
Thanks!
Logged

Frank-duino

North Queensland, Australia
Offline Offline
Edison Member
*
Karma: 74
Posts: 2210
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It includes a file for compilation
NewSoftSerial.h is the name of the library file.
Logged


UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12630
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's a directive which instructs the compiler to insert the contents of NewSoftSerial.h into your source at that point before trying to compile it. It's the normal way to deal with 'C' programs that are split across multiple files. In this case, the file being included contains the declarations for the NewSoftSerial library so that they are available for you to use in your sketch.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Pittsburgh, PA, USA
Offline Offline
Faraday Member
**
Karma: 98
Posts: 4813
I learn a bit every time I visit the forum.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Isn't the "old" NewSoftSerial now included in 1.0 as SoftSerial?

Make sure you have libraries that match the version IDE you are using.


Logged

I find it harder to express logic in English than in Code.
Sometimes an example says more than many times as many words.

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 632
Posts: 50182
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Isn't the "old" NewSoftSerial now included in 1.0 as SoftSerial?
It is now called SoftwareSerial.
Logged

Pages: [1]   Go Up
Jump to: