ndd12
February 1, 2014, 9:53pm
1
Im trying to use both SoftwareSerial and library for PCF8574 chip (downloaded from here: GitHub - skywodd/pcf8574_arduino_library: PCF8574 / PCF8575 Arduino library (version 2.0) ).
On compile IDE show this:
/usr/bin/avr-ld: warning: -z relro ignored.
PCF8574/PCF8574.cpp.o: In function `__vector_9':
/home/ndd/sketchbook/libraries/PCF8574/PCint.h:108: multiple definition of `__vector_9'
SoftwareSerial/SoftwareSerial.cpp.o:/usr/share/arduino-1.0.5/libraries/SoftwareSerial/SoftwareSerial.cpp:306: first defined here
collect2: error: ld returned 1 exit status
So i guess that problem is both libraries try to use same 'vector'. How to solve this? Are there any other 'vectors' (no idea what it is) which i can switch in one library to resolve conflict?
system
February 2, 2014, 1:07am
2
If you have pins 8 and 9 free, you could try using AltSoftSerial instead of SoftwareSerial.
ndd12
February 2, 2014, 8:13am
3
PaulS:
If you have pins 8 and 9 free, you could try using AltSoftSerial instead of SoftwareSerial.
SoftwareSerial is using pin 8 as rx and pin 9 is used by buzzer. So, this conflict is impossible to solve and i have to use other library?
system
February 2, 2014, 11:06am
4
SoftwareSerial is using pin 8 as rx
So, pin 8 would be available for use by AltSoftSerial.
and pin 9 is used by buzzer.
And you can't move it? Or won't move it?
It it's can't, then I don't have any other ideas.
It it's won't, then you are shit out of luck.
ndd12
February 2, 2014, 5:19pm
5
PaulS:
And you can't move it?
Can't. No more free pins. Maybe when i get second PCF8674 chip to move LCD to it. Temporarily im not using PCF8574 lib, just Wire lib.
system
February 2, 2014, 5:32pm
6
ndd12:
PaulS:
And you can't move it?
Can't. No more free pins. Maybe when i get second PCF8674 chip to move LCD to it. Temporarily im not using PCF8574 lib, just Wire lib.
Can you tell us what pins you are using, and what you are using them for?
ndd12
February 3, 2014, 10:43am
7
Pins
2-3 => PCF8574
4-7 => LCD
8 => SoftwareSerial RX
9 => buzzer
10 => LCD backlight control
11-12 => LCD
13 => Fan control
system
February 3, 2014, 10:46am
8
So, you have a bunch of pins on the other side of the board that can also be used as digital pins. A0, A1, etc.
ndd12
February 3, 2014, 5:45pm
9
Can i use analog pins as digital? Arent they read-only?
system
February 3, 2014, 5:47pm
10
Can i use analog pins as digital?
Yes.
Arent they read-only?
As analog pins, yes. As digital pins, no.