Hi, I'm really new to coding and Arduino so I apologize if what I write doesn't make sense.
I'm trying to code two Simblee chips to wirelessly communicate with each other via bluetooth.
I want to use the library SoftwareSerial, and so far I've been getting a lot of error messages that read "
____ was not declared in this scope." I've gotten rid of these error messages by finding the files that define it in my arduino1.6.5-r5 folder and putting them in with the SoftwareSerial folder.
I think that I should do the same with PCICR, but I don't know where this register is defined.
Am I doing this right? Where can I find where PCICR is defined?
jdlin:
Am I doing this right? Where can I find where PCICR is defined?
Probably not. PCICR is an AVR register, and probably not on whatever ARM chip the Bluetooth module uses. Probably a lot of those other messages are for the same reason. You can get it to compile by pasting stuff into the SS folder, but it won't work because SoftwareSerial isn't written for that chip.
Give me a strong enough hammer, and I'll make any square peg fit into any round hole you want. Won't be pretty though.
The software serial library you're using only supports AVR-based boards, and the official non-AVR arduinos.
Your board is neither of those. You need a software serial implementation that supports the Simblee board. Do they have official forums or support? That would be a better place to ask, I think - I think this is the first mention I've heard here of "Simblee"
Software serial implementations require using the chip's pin-change interrupt functionality, and this is implemented differently on different architectures. The library uses #ifdefs to pick the right code to use for the processor, but it (apparently) doesn't test for the possibility that the processor is entirely unsupported, and it ends up trying to build for some AVR board, and barfs when it gets to the first name of an AVR register. (PCICR - pin change interrupt control register). Smarter library code could give a more informative error here with #error.