hI, can someone please tell me why this line of code is returning a

hI, can someone please tell me why this line of code is returning a compile error saying "unqualified id before numeric constant. Stray “#” in program. I’m not an experienced coder, help appreciated.
#define MAX_DIMENSION ((kMatrixWidth>kMatrixHeight) ? kMatrixWidth : kMatrixHeight)

I’d need to see he rest of your code to know what s causing the compiler to complain - can you upload it to http://gist.github.com?

thanks for you reply. I’ve managed to figure it out with a little help and some trial and error and its compiling ok now. Perhaps you can help me with a new problem? On uploading the code to the mega2560 the communication is timing out. Board is powered and its not the !!! code bug I’ve read about. Any ideas?

What type of computer are you using? With some arduino boards, I have noticed that sometimes I have to unplug/replug the board. Also, sometimes hitting the reset button on the board just before it starts uploading also helps. (Sometimes the code running on the board can be in a state where the board won’t respond to the reprogramming request)

pc windows 10. Arduino IDE 1.6.8. I have tried both those suggestions too but will try again. Seems like this is well known issue, which doesn’t bode well. Its a Funduino board if that helps.

Ah fixed it. It didn’t like one of the connections between the board and the spectrum analyser board. Program uploaded but no action - its scratchy head time!

Hi again, Still not getting any action. wiring all seems ok so I think its software related. Although I did get the program to compile and upload on checking the log the following message appears. There are a few others as well. Would such errors stop the program working or are they just compiler warnings or something. Not very experienced at this, help appreciated!
FastLED\platforms/avr/clockless_trinket.h:47:55: warning: unused parameter ‘loopvar’ [-Wunused-parameter]
template<> attribute((always_inline)) inline void _dc<-3>(register uint8_t & loopvar) {}