I have the Max31855 board and it works well on the Arduino Mega. I am now trying to get it to work with the chipKit.
I have copied the Adafruit directory from the Arduino Library to the Mpide library directory.
The Mpide tells me it cant find the header file.
Is there something special I need to do to use library for the Arduino with the chipKIT?
Max31855 and the chipKIT
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- phedlund
- Posts: 14
- Joined: Fri Jan 18, 2013 3:06 pm
Re: Max31855 and the chipKIT
Problem Solved
1. The Max31855 Library need to go into
/users/youruser/mpide/libraries/Adafruit_MAX31855
NOT!!
/arduino/libraries
2. in Adafruit_MAX31855.cpp
Comment out #include <avr/pgmspace.h> and #include <util/delay.h>
3. Create a sub function
void _delay_ms(int val)
{
delay(val);
}
Now the program will compile and run.
The temperature seems accurate.
1. The Max31855 Library need to go into
/users/youruser/mpide/libraries/Adafruit_MAX31855
NOT!!
/arduino/libraries
2. in Adafruit_MAX31855.cpp
Comment out #include <avr/pgmspace.h> and #include <util/delay.h>
3. Create a sub function
void _delay_ms(int val)
{
delay(val);
}
Now the program will compile and run.
The temperature seems accurate.
Please be positive and constructive with your questions and comments.