uChip / MCP342X

Arduino Library for MCP3421, MCP3422, MCP3423, MCP3424, MCP3425, MCP3426, MCP3427, MCP3428 ADCs
Other
34 stars 25 forks source link

Compiling problem with MCP342X Library #1

Closed MANUDI closed 7 years ago

MANUDI commented 10 years ago

Hello, i'm trying to use yr Library on Arduino IDE version 1.05-re2. But if i compile even if the example within this library, it comes out the following : MCP342xuCHIP.ino: In function 'void setup()': MCP342xuCHIP:17: error: 'class MCP342X' has no member named 'testConnection' MCP342xuCHIP:19: error: 'class MCP342X' has no member named 'configure' MCP342xuCHIP:19: error: 'MCP342X_MODE_CONTINUOUS' was not declared in this scope MCP342xuCHIP:20: error: 'MCP342X_CHANNEL_1' was not declared in this scope MCP342xuCHIP:21: error: 'MCP342X_SIZE_16BIT' was not declared in this scope MCP342xuCHIP:22: error: 'MCP342X_GAIN_1X' was not declared in this scope MCP342xuCHIP:25: error: 'class MCP342X' has no member named 'getConfigRegShdw' MCP342xuCHIP.ino: In function 'void loop()': MCP342xuCHIP:32: error: 'class MCP342X' has no member named 'startConversion' MCP342xuCHIP:33: error: 'class MCP342X' has no member named 'getResult'

could you help me to find out whats the matter? thanks in Advance

uChip commented 10 years ago

Hmmmm, I am using Arduino release 1.0.5. Looks like you are using 1.5.6-r2 BETA. I have not tested with that release. I will take a look.

uChip commented 10 years ago

I installed the Arduino 1.5.6-r2 BETA release and the example file still compiles fine on my machine. Please check your installation of the library. The entire MCP342X folder needs to be in your .../Documents/Arduino/libraries folder. Do not change folder or file names as these are connected in the Arduino IDE.

uChip commented 10 years ago

I see there is an r2 of the 1.0.5 IDE as well. I have installed and compiled the example ino with that IDE too. All seems to work fine.