amperka/ino — Issue #7: compile error: AdvButton example
Author: ponty
Created: 2011-11-29 20:24:11+00:00
State: open

I get a compile error with AdvButton example.

This is the simplified AdvButton example:

```C++
#include

AdvButton but1 = AdvButton(0,OnKeyPressBut1,100,1000,btn_Digital);

void setup()
{
}

void OnKeyPressBut1(AdvButton* but)
{
}

void loop()
{
}
```

log:

```
$ ino build -m diecimila
make: Nothing to be done for `all'.
make: Nothing to be done for `all'.
src/buttondemo.cpp
.build/src/buttondemo.cpp:4: error: ‘OnKeyPressBut1’ was not declared in this scope
make: *** [.build/src/buttondemo.o] Error 1
```