Button Library doesn't work?


http://playground.arduino.cc/code/button

there seems problem library.  example code doesn't compile, , tried on 2 different operating systems.


error running example code:
quote
arduino: 1.0.6 (mac os x), board: "arduino uno"
button:27: error: 'pullup' not declared in scope
button button = button(12,pullup);
  if remove word pullup line, works.  need pull-ups turned on.

quote
button:27: error: 'pullup' not declared in scope
because term button_pullup, not pullup.


Arduino Forum > Using Arduino > Programming Questions > Button Library doesn't work?


arduino

Comments

  1. Still get "BUTTON_PULLUP" was not declared in this scope. Might it be because Arduino v 1.6.5 doesn't support it ?

    ReplyDelete

Post a Comment

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code