Created Thu, 12 Jul 2018 07:50:18 +0000 by woerr
Thu, 12 Jul 2018 07:50:18 +0000
Board: Picadillo 35t Cores: chipKit Compilers: PIC32 compiler version 1.43
#include <Wire.h>
#include <SD.h>
#include <Open24Display.h>
#include <Picadillo.h>
#include <Arial.h>
#include <XTerm.h>
#include <gciWidget.h>
#include <Display7Seg.h>
#include <Stepper.h>
attachInterrupt(0, reedLowInt, CHANGE); // motor 2 speed interrupt on falling edge
(from wiring.h)
79: #define CHANGE 2
80: #define FALLING 3
81: #define RISING 4
Error: Error at line 79 in file wiring.h: ‣ expected unqualified-id before numeric constant
Thu, 12 Jul 2018 10:28:40 +0000
That's a strange one. I can't replicate it with what you have provided. Are you sure you aren't using CHANGE as a variable or something somewhere else in your sketch?
Update:
I can get that exact same error by adding:
int CHANGE = 3;
in my sketch. That of course would convert to:
int 2 = 3;
The full error (in the Output tab of UECIDE) is:
In file included from /home/matt/.uecide/cores/chipkit/pic32/WProgram.h:14:0,
from /tmp/untitled1/build/untitled1_combined.cpp:1:
/home/matt/.uecide/cores/chipkit/pic32/wiring.h:79:16: error: expected unqualified-id before numeric constant
#define CHANGE 2
^
/tmp/untitled1/untitled1.ino:11:5: note: in expansion of macro 'CHANGE'
Thu, 12 Jul 2018 10:45:44 +0000
I noticed that one of my interrupt lines had a point instead of a comma. making it
attachInterrupt(3, reedHigh2Int. CHANGE);
Fixed that and now it compiles..
Sorry for wasting your time.
Thu, 12 Jul 2018 11:05:58 +0000
D'oh... easily done. I have done it myself before now...