martin2250 / ADCTouch

touch sensing library for Arduino
MIT License
100 stars 24 forks source link

Error message: if (digitalPin == NOT_A_PIN) return; #4

Closed OliElNaesh closed 6 years ago

OliElNaesh commented 6 years ago

Hi I am trying to use your ADCTouch library and it works on my arduino, but i can't seem to upload it to my ATtiny85 microchip. I get the following error message:

C:\Program Files (x86)\Arduino\Arduino Projekt\libraries\ADCTouch-master\src\ADCTouch.cpp:13:31: error: return-statement with no value, in function returning 'int' [-fpermissive]

if (digitalPin == NOT_A_PIN) return;

                           ^

exit status 1 Error compiling for board ATtiny85 @ 8 MHz (internal oscillator; BOD disabled).

martin2250 commented 6 years ago

Hi,

thanks for your feedback. I updated the library on github. does the new version work?

OliElNaesh commented 6 years ago

IT WORKS!! Man if your forehead was in front of me right now I would kiss it! Thank you!

was the only difference a -1?

martin2250 commented 6 years ago

Haha, ok great! yeah, it really was that simple. I suppose they changed something about the compiler warnings, maybe this is different for different OSes.