I started to attempt to use NewSoftSerial for interfacing with the iPod. I have inserted this:
#include "iPodSerial.h"
#include "NewSoftSerial.h"
#include <ctype.h>
#define rxPin 6
#define txPin 7
NewSoftSerial nss(rxPin, txPin);
static const char *STATE_NAME[] =
{
"Waiting for Header 1",
"Waiting for Header 2",
"Waiting for length",
"Waiting for data",
"Waiting for checksum"
};
iPodSerial::iPodSerial(): receiveState(WAITING_FOR_HEADER1),
dataSize(0),
pData(0),
checksum(0),
pSerial(nss)
#if defined(IPOD_SERIAL_DEBUG)
,
pDebugPrint(0), // default to no debug, since most Arduinos don't have a spare serial to use for debug
pLogPrint(0) // default to no log, since most Arduinos don't have a spare serial to use for debug
#endif
{
}
A couple of things puzzle me first if I use #include <NewSoftSerial.h> I get a file not found error. Can someone explain what the difference between " " and <> for including files.
Second if I use #include "NewSoftSerial.h" I get this error:
error: cannot convert 'NewSoftSerial' to 'HardwareSerial*' in initialization
Does anyone have any insight?
Thank you very much,
Loren