MarkusLange / OneWireSlave

38 stars 9 forks source link

Interrupt pin checking logic preprocessing may be wrong, cannot compile. #4

Open GitLang opened 9 years ago

GitLang commented 9 years ago

This is strange, I can't really see what is happening. I tried the new version on Due but could not get sensible values from the sensor. So I switched to Mega, changed the pin to suit, and immediately got this error :

In file included from E:\EDA\Arduino\libraries\OneWireSlave-master\OneWireSlave.cpp:60:0: E:\EDA\Arduino\libraries\OneWireSlave-master\OneWireSlave.h:35:4: error: #error "Not an Interrupt Pin"

error "Not an Interrupt Pin"

^

E:\EDA\Arduino\libraries\OneWireSlave-master\OneWireSlave.h:36:4: error: #error "Use 2, 3, 18, 19, 20 or 21"

error "Use 2, 3, 18, 19, 20 or 21"

I have tried #define dsslavepin as 2, 3, 18, 19, 20 and 21 and I get the same error everytime I save then compile. I am using Mega2560 setting and Arduino Mega 2560 board.

MarkusLange commented 9 years ago

I look at it, did you give me some more information about your IDE Version and what values you get from the Due

GitLang commented 9 years ago

IDE is latest, V1.5.7. On the Due, it returned -25.x degrees C. I cannot remember exact number and I cannot test it right now. I think number was fixed and did not change, always 25.x

Giermann commented 8 years ago

Have not used it so far, but I'm starting to look at it and also got "not an interrupt pin" error on compile. It seems that 'dsslavepin' and 'dsslaveassignedint' is not used any more, is it? I only find some checks on it on the beginning of the header file and lines that are commented out in .cpp - is this obsolete code?