Hi! I just wired Pixy in I2C mode to solve previous problems that occurred with the connection SPI because of sharing Pin (12, 13) with EasyVr Shield, and loading the example “PanTilt” modified in I2C mode, I get by compiler the following error:
C:\Users\Francesco Onorati\Documents\Arduino\libraries\Pixy/TPixy.h: In member function ‘int8_t TPixy::setServos(uint16_t, uint16_t) [with LinkType = LinkI2C]’:
pantilt.ino:99: instantiated from here
C:\Users\Francesco Onorati\Documents\Arduino\libraries\Pixy/TPixy.h:227: error: ‘class LinkI2C’ has no member named ‘send’
If comment out the call to the function: “pixy.setServos (panLoop.m_pos, tiltLoop.m_pos);” the compiler no longer returns the error, but of course the PanTilt not work.
I tried with the sketch of example “I2C” without PanTilt, and works well.
I think this is a compatibility problem with the file TPixy.h or PixyI2C.h and Arduino Uno R3 IDE, how can I fix it?
Both the firmware that the library Pixy are updated to the latest version:
(Firmware-1.0.2beta.hex; arduino_pixy-0.1.5.zip)
The version of the IDE Arduino Uno R3 is 1.0.6.
Thanks in advance for your reply, Scott!
The sketch PanTilt modified I2C is attached.
Here is the complete error code:
…
Arduino: 1.0.6 (Windows Vista), Board: “Arduino Uno”
C:\Program Files\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -IC:\Program Files\Arduino\hardware\arduino\cores\arduino -IC:\Program Files\Arduino\hardware\arduino\variants\standard -IC:\Program Files\Arduino\libraries\Wire -IC:\Users\Francesco Onorati\Documents\Arduino\libraries\Pixy C:\Users\FRANCE~1\AppData\Local\Temp\build2498752582345740847.tmp\pantilt.cpp -o C:\Users\FRANCE~1\AppData\Local\Temp\build2498752582345740847.tmp\pantilt.cpp.o
pantilt.ino: In member function ‘void ServoLoop::update(int32_t)’:
pantilt.ino:57: warning: comparison between signed and unsigned integer expressions
pantilt.ino:56: warning: unused variable ‘buf’
pantilt.ino: In function ‘void loop()’:
pantilt.ino:107: warning: comparison between signed and unsigned integer expressions
C:\Users\Francesco Onorati\Documents\Arduino\libraries\Pixy/TPixy.h: In member function ‘int8_t TPixy::setServos(uint16_t, uint16_t) [with LinkType = LinkI2C]’:
pantilt.ino:99: instantiated from here
C:\Users\Francesco Onorati\Documents\Arduino\libraries\Pixy/TPixy.h:227: error: ‘class LinkI2C’ has no member named ‘send’