beukhof1 / tiny-altimeter

Automatically exported from code.google.com/p/tiny-altimeter
12 stars 6 forks source link

Compiling errors #5

Open PottersOnline opened 5 years ago

PottersOnline commented 5 years ago

Thanks for the update to this project.

I have attempted to build it in Arduino but it keeps throwing compiling errors and I do not know enough about c++ to know how to solve them.

Any guidance would be greatly appreciated.

Here is the error message

/tmp/682765998/new_tiny_altimeter/new_tiny_altimeter.ino:39:37: error: 'BUTTON_PULLDOWN' was not declared in this scope

Button button1 = Button(BUTTON1_PIN,BUTTON_PULLDOWN);

^

/tmp/682765998/new_tiny_altimeter/new_tiny_altimeter.ino: In function 'void setup()':

/tmp/682765998/new_tiny_altimeter/new_tiny_altimeter.ino:62:11: error: 'class Button' has no member named 'releaseHandler'

button1.releaseHandler(handleButtonReleaseEvents);

^

/tmp/682765998/new_tiny_altimeter/new_tiny_altimeter.ino:63:11: error: 'class Button' has no member named 'holdHandler'

button1.holdHandler(handleButtonHoldEvents,2000);

^

/tmp/682765998/new_tiny_altimeter/new_tiny_altimeter.ino:90:11: error: 'class Button' has no member named 'isPressed'

button1.isPressed();

^

/tmp/682765998/new_tiny_altimeter/new_tiny_altimeter.ino: In function 'void loop()':

/tmp/682765998/new_tiny_altimeter/new_tiny_altimeter.ino:99:11: error: 'class Button' has no member named 'isPressed'

button1.isPressed();

^

exit status 1

per1234 commented 5 years ago

Discussion of the problem on the Arduino forum: http://forum.arduino.cc/index.php?topic=582391

bdureau commented 5 years ago

Hello Have you copied the lib in your Arduino lib folder? Regards Boris

per1234 commented 5 years ago

@bdureau read the forum thread at the link in my last reply. We already helped PottersOnline get it working 5 days ago.