Created Tue, 07 Aug 2012 22:58:32 +0000 by Jaydie
Tue, 07 Aug 2012 22:58:32 +0000
I have a problem using this LCD (see link [url]http://www.ladyada.net/products/i2cspilcdbackpack/[/url]). I followed the instruction on the web (as quoated below but I modified it to fit my need since I am using a mac) and I still get an error message (see error at bottom)
-Click the Downloads button in the top right of the GitHub page -You will need to remove the old library, find the folder ArduinoIDE/libraries/LiquidCrystal and put it somewhere else for safekeeping. -Uncompress the downloaded library, the folder will be called something like adafruit-LiquidCrystal-xxxxx. Look inside and verify you see a file called MCP23008.h. Rename the folder LiquidCrystal and drag it into your personal library folder which is in arduinosketchfolder/libraries -Quit and restart the Arduino IDE If you have a hankering to use the backpack as a general purpose i2c expander, you should use the plain MCP23008 library, also at github . Its for more advanced users, by the way.
Since I am using a mac I put the modified libraries under Resources/pic32/libraries and also tried in Resources/libraries where the original LiquidCrystal libraries are located.
[color=#FF0000]HERE IS THE ERROR[/color]
In file included from /Applications/Mpide.app/Contents/Resources/Java/./hardware/pic32/libraries/LiquidCrystal/Adafruit_MCP23008.cpp:20:0: /Applications/Mpide.app/Contents/Resources/Java/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/include/avr/pgmspace.h:4:2: error: #error ******** This sketch or library uses AVR-specific code that may not work with the chipKIT platform. See this forum for more information on porting code to chipKIT [www.chipkit.org/forum/viewforum.php?f=7] ********
I appreciate any help or any lead where can I find a solution.
Wed, 08 Aug 2012 01:42:29 +0000
its an arduino library, not a chipkit library. as the error indicates, its calling <avr/pgmspace.h>
You'd need to go through the code and see what needs changing to pic32 and make those changes
Wed, 08 Aug 2012 17:53:42 +0000
Any body can help me out with avr/pgmspace.h? is there already a port of this .h file for chipkit?
Wed, 08 Aug 2012 19:07:41 +0000
This library appears to very specific to the Arduino. A quick glance at it leads me to believe it needs to be rewritten if it is to be used on the chipKIT boards.