Fullsized Skywriter library compiling issue


#1

Hi,

I wanted to test the fullsized skywriter panel with the code you posted on: http://forums.pimoroni.com/t/skywriter-with-arduino-getting-started-problems/887/3
and the library files from the git: https://github.com/pimoroni/skywriter-hat/tree/master/arduino with an Arduino UNO R3

But when I want to compile the code I get the following errors:

In file included from sketch_feb01a.ino:2:
skywriter.h:76: error: ISO C++ forbids initialization of member 'handle_touch’
skywriter.h:76: error: making ‘handle_touch’ static
skywriter.h:76: error: invalid in-class initialization of static data member of non-integral type 'void ()(unsigned char)'
skywriter.h:77: error: ISO C++ forbids initialization of member 'handle_airwheel’
skywriter.h:77: error: making ‘handle_airwheel’ static
skywriter.h:77: error: invalid in-class initialization of static data member of non-integral type 'void (
)(int)'
skywriter.h:78: error: ISO C++ forbids initialization of member 'handle_gesture’
skywriter.h:78: error: making ‘handle_gesture’ static
skywriter.h:78: error: invalid in-class initialization of static data member of non-integral type ‘void (*)(unsigned char)’

To me this looks like a variable which is initialized at the wrong place. But since it seamed to work for you it might be that I am doing something wrong.

Could you please check if the source on the git does compile for you? Or could you tell me why I get these errors?

Thanks a lot,

Andy