compile error with #define, which previously compiled


i have line

code: [select]
#define datapin 4

about ide gives me error: "expected ',' or '...' before numeric constant".

the exact same line in previous sketch 1 derived from, , there compiled without problems. using different name solves it, seems ide bug, right?

we need see of code preprocessor directives screwed depending on place in source file.


Arduino Forum > Using Arduino > Programming Questions > compile error with #define, which previously compiled


arduino

Comments