need help compile a source

Bilo2024

Member
hello dear teensy community,

i'm new to teensy and have no c or c++ skills unfortunately can't compile this source:


could a kind soul make a fully compiled binary of this?

and help me with short instructions on what you need to pay attention to in order to compile successfully.

I need it for teensy 2.0

Thanks
 
Hello Paul,

many thanks for the quick response.

I was aware that teensy 2.0 is no longer up to date.

If I understood you correctly, it is no longer possible to compile for teensy 2.0 because support has been discontinued.

The only option would be to load an existing .hex binary into teensy 2.0 using the teensy loader.

Using newer teensy boards would be an option, but the developer from the source mentioned above has designed a specially suitable PCB mainboard for teensy 2.0.
Since the pin assignment of new teensy boards will be different, a new pcb board would have to be designed.
At this level of effort I would get out.
are my statements are correct?
 
Software for Teensy still supports compiling for Teensy 2.0. Anyone can see this in Arduino IDE with Teensyduino installed. Simply click Teensy 2.0 from the Tools > Board menu. Easy peasy!

Teensy 2.0 hardware is no longer being manufactured. The software is only usable with old Teensy 2.0 boards. No new hardware is being made.
 
I understand hardware-wise.

As I said, I always get error messages when compiling.
Would you be so kind to provide me the compiled version of itand explain the procedure?
 
No, I'm not going to do it for you. But if you show an exact copy of the error, I might help you do resolve the problem yourself.
 
sure no problem this is what i done. copy all codes from source to sketch folder.
After i copied the content of MotorizedFader.cpp to sketch
"put your main code here, to run repeatedly:"

then press compile and the first error come up see in picture.

Screenshot 2024-02-08 at 21.48.56.png


Makefile:
FQBN: teensy:avr:teensy2:usb=midi
Using board 'teensy2' from platform in folder: /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1
Using core 'teensy' from platform in folder: /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1

loading library from /Users/bt/Documents/Arduino/libraries/Control-Surface-Motor-Fader-master: invalid library: no header files found
loading library from /Users/bt/Documents/Arduino/libraries/motorized_fader-1.0: invalid library: no header files found
Detecting libraries used...
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/sketch/sketch_feb8a.ino.cpp -o /dev/null
Alternatives for CapacitiveSensor.h: [CapacitiveSensor@0.5.1]
ResolveLibrary(CapacitiveSensor.h)
  -> candidates: [CapacitiveSensor@0.5.1]
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/sketch/sketch_feb8a.ino.cpp -o /dev/null
Alternatives for TimerOne.h: [TimerOne@1.1]
ResolveLibrary(TimerOne.h)
  -> candidates: [TimerOne@1.1]
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/sketch/sketch_feb8a.ino.cpp -o /dev/null
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@1.0]
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/sketch/sketch_feb8a.ino.cpp -o /dev/null
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/sketch/ButtonPanel.cpp -o /dev/null
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/sketch/MotorizedFader.cpp -o /dev/null
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor/CapacitiveSensor.cpp -o /dev/null
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne/TimerOne.cpp -o /dev/null
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/utility /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.cpp -o /dev/null
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/utility /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/WireIMXRT.cpp -o /dev/null
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/utility /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/WireKinetis.cpp -o /dev/null
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/utility /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/utility/twi.c -o /dev/null
Generating function prototypes...
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/sketch/sketch_feb8a.ino.cpp -o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/402858552/sketch_merged.cpp
/Users/bt/Library/Arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/402858552/sketch_merged.cpp
Compiling sketch...
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-tools/1.58.0/precompile_helper /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC /Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -x c++-header -Os -g -Wall -ffunction-sections -fdata-sections -MMD -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h -o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h.gch
Using previously compiled file: /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h.gch
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -c -Os -g -Wall -ffunction-sections -fdata-sections -MMD -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/sketch/sketch_feb8a.ino.cpp -o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/sketch/sketch_feb8a.ino.cpp.o
Using previously compiled file: /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/sketch/ButtonPanel.cpp.o
Using previously compiled file: /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/sketch/MotorizedFader.cpp.o
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:4:0,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/avr/include/stdlib.h: In function 'void loop()':
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/avr/include/stdlib.h:56:8: error: expected unqualified-id before string constant
 extern "C" {
        ^~~
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:5:0,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/avr/include/string.h:58:8: error: expected unqualified-id before string constant
 extern "C" {
        ^~~
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:6:0,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/avr/include/math.h:121:8: error: expected unqualified-id before string constant
 extern "C" {
        ^~~
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/wiring.h:34:0,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:19,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/core_pins.h:817:8: error: expected unqualified-id before string constant
 extern "C"{
        ^~~
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:19:0,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/wiring.h:40:8: error: expected unqualified-id before string constant
 extern "C"{
        ^~~
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Print.h:24:0,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Stream.h:24,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/../usb_midi/usb_api.h:6,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/usb_api.h:10,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:22,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/avr/include/stdio.h:399:8: error: expected unqualified-id before string constant
 extern "C" {
        ^~~
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WString.h:28:0,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Print.h:27,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Stream.h:24,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/../usb_midi/usb_api.h:6,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/usb_api.h:10,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:22,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/avr/include/ctype.h:48:8: error: expected unqualified-id before string constant
 extern "C" {
        ^~~
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WString.h:29:0,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Print.h:27,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Stream.h:24,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/../usb_midi/usb_api.h:6,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/usb_api.h:10,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:22,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/avr/include/avr/pgmspace.h:116:8: error: expected unqualified-id before string constant
 extern "C" {
        ^~~
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Print.h:27:0,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Stream.h:24,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/../usb_midi/usb_api.h:6,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/usb_api.h:10,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:22,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WString.h:112:84: error: friend declaration 'loop()::StringSumHelper& operator+(const loop()::StringSumHelper&, const loop()::String&)' in local class without prior declaration
  friend StringSumHelper & operator + (const StringSumHelper &lhs, const String &rhs);
                                                                                    ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WString.h:113:83: error: friend declaration 'loop()::StringSumHelper& operator+(const loop()::StringSumHelper&, const char*)' in local class without prior declaration
  friend StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr);
                                                                                   ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WString.h:114:100: error: friend declaration 'loop()::StringSumHelper& operator+(const loop()::StringSumHelper&, const loop()::__FlashStringHelper*)' in local class without prior declaration
  friend StringSumHelper & operator + (const StringSumHelper &lhs, const __FlashStringHelper *pgmstr);
                                                                                                    ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WString.h:115:73: error: friend declaration 'loop()::StringSumHelper& operator+(const loop()::StringSumHelper&, char)' in local class without prior declaration
  friend StringSumHelper & operator + (const StringSumHelper &lhs, char c);
                                                                         ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WString.h:116:82: error: friend declaration 'loop()::StringSumHelper& operator+(const loop()::StringSumHelper&, unsigned char)' in local class without prior declaration
  friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned char c);
                                                                                  ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WString.h:117:74: error: friend declaration 'loop()::StringSumHelper& operator+(const loop()::StringSumHelper&, int)' in local class without prior declaration
  friend StringSumHelper & operator + (const StringSumHelper &lhs, int num);
                                                                          ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WString.h:118:83: error: friend declaration 'loop()::StringSumHelper& operator+(const loop()::StringSumHelper&, unsigned int)' in local class without prior declaration
  friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned int num);
                                                                                   ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WString.h:119:75: error: friend declaration 'loop()::StringSumHelper& operator+(const loop()::StringSumHelper&, long int)' in local class without prior declaration
  friend StringSumHelper & operator + (const StringSumHelper &lhs, long num);
                                                                           ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WString.h:120:84: error: friend declaration 'loop()::StringSumHelper& operator+(const loop()::StringSumHelper&, long unsigned int)' in local class without prior declaration
  friend StringSumHelper & operator + (const StringSumHelper &lhs, unsigned long num);
                                                                                    ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WString.h:121:76: error: friend declaration 'loop()::StringSumHelper& operator+(const loop()::StringSumHelper&, float)' in local class without prior declaration
  friend StringSumHelper & operator + (const StringSumHelper &lhs, float num);
                                                                            ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WString.h:122:77: error: friend declaration 'loop()::StringSumHelper& operator+(const loop()::StringSumHelper&, double)' in local class without prior declaration
  friend StringSumHelper & operator + (const StringSumHelper &lhs, double num);
                                                                             ^
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Printable.h:26:0,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Print.h:28,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Stream.h:24,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/../usb_midi/usb_api.h:6,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/usb_api.h:10,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:22,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/new.h:19:8: error: expected unqualified-id before string constant
 extern "C" int __cxa_guard_acquire(__guard *);
        ^~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/new.h:20:8: error: expected unqualified-id before string constant
 extern "C" void __cxa_guard_release (__guard *);
        ^~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/new.h:21:8: error: expected unqualified-id before string constant
 extern "C" void __cxa_guard_abort (__guard *);
        ^~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/new.h:22:8: error: expected unqualified-id before string constant
 extern "C" void __cxa_pure_virtual(void);
        ^~~
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Stream.h:24:0,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/../usb_midi/usb_api.h:6,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/usb_api.h:10,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:22,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Print.h: In member function 'size_t loop()::Print::write(const char*)':
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Print.h:48:71: error: 'strlen' was not declared in this scope
  size_t write(const char *str)   { return write((const uint8_t *)str, strlen(str)); }
                                                                       ^~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Print.h:48:71: note: suggested alternative: 'str'
  size_t write(const char *str)   { return write((const uint8_t *)str, strlen(str)); }
                                                                       ^~~~~~
                                                                       str
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:23:0,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h: In function 'void loop()':
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:26:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isAlphaNumeric(int c) __attribute__((always_inline));
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:27:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isAlpha(int c) __attribute__((always_inline));
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:28:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isAscii(int c) __attribute__((always_inline));
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:29:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isWhitespace(int c) __attribute__((always_inline));
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:30:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isControl(int c) __attribute__((always_inline));
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:31:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isDigit(int c) __attribute__((always_inline));
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:32:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isGraph(int c) __attribute__((always_inline));
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:33:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isLowerCase(int c) __attribute__((always_inline));
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:34:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isPrintable(int c) __attribute__((always_inline));
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:35:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isPunct(int c) __attribute__((always_inline));
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:36:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isSpace(int c) __attribute__((always_inline));
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:37:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isUpperCase(int c) __attribute__((always_inline));
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:38:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isHexadecimalDigit(int c) __attribute__((always_inline));
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:46:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isAlphaNumeric(int c)
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:54:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isAlpha(int c)
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:62:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isAscii(int c)
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:69:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isWhitespace(int c)
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:76:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isControl(int c)
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:83:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isDigit(int c)
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:90:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isGraph(int c)
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:97:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isLowerCase(int c)
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:104:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isPrintable(int c)
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:112:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isPunct(int c)
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:121:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isSpace(int c)
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:128:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isUpperCase(int c)
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:136:8: error: 'boolean' does not name a type; did you mean 'bool'?
 inline boolean isHexadecimalDigit(int c)
        ^~~~~~~
        bool
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:145:1: error: a function-definition is not allowed here before '{' token
 {
 ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:157:1: error: a function-definition is not allowed here before '{' token
 {
 ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WCharacter.h:164:1: error: a function-definition is not allowed here before '{' token
 {
 ^
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Arduino.h:2:0,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h:29,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:26,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:124:87: error: cannot declare static function inside another function
 static inline uint8_t digitalPinToTimer(uint8_t) __attribute__((always_inline, unused));
                                                                                       ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:126:1: error: a function-definition is not allowed here before '{' token
 {
 ^
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:26:0,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h: In constructor 'loop()::elapsedMillis::elapsedMillis()':
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h:39:29: error: 'millis' was not declared in this scope
  elapsedMillis(void) { ms = millis(); }
                             ^~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h: In constructor 'loop()::elapsedMillis::elapsedMillis(long unsigned int)':
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h:40:42: error: 'millis' was not declared in this scope
  elapsedMillis(unsigned long val) { ms = millis() - val; }
                                          ^~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h: In member function 'loop()::elapsedMillis::operator long unsigned int() const':
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h:42:43: error: 'millis' was not declared in this scope
  operator unsigned long () const { return millis() - ms; }
                                           ^~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h: In member function 'loop()::elapsedMillis& loop()::elapsedMillis::operator=(long unsigned int)':
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h:44:56: error: 'millis' was not declared in this scope
  elapsedMillis & operator = (unsigned long val) { ms = millis() - val; return *this; }
                                                        ^~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h: In constructor 'loop()::elapsedMicros::elapsedMicros()':
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h:62:29: error: 'micros' was not declared in this scope
  elapsedMicros(void) { us = micros(); }
                             ^~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h: In constructor 'loop()::elapsedMicros::elapsedMicros(long unsigned int)':
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h:63:42: error: 'micros' was not declared in this scope
  elapsedMicros(unsigned long val) { us = micros() - val; }
                                          ^~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h: In member function 'loop()::elapsedMicros::operator long unsigned int() const':
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h:65:43: error: 'micros' was not declared in this scope
  operator unsigned long () const { return micros() - us; }
                                           ^~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h: In member function 'loop()::elapsedMicros& loop()::elapsedMicros::operator=(long unsigned int)':
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h:67:56: error: 'micros' was not declared in this scope
  elapsedMicros & operator = (unsigned long val) { us = micros() - val; return *this; }
                                                        ^~~~~~
In file included from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1:0,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h: In function 'void loop()':
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:30:19: error: 'uint16_t makeWord' redeclared as different kind of symbol
 uint16_t makeWord(byte h, byte l);
                   ^~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:29:10: note: previous declaration 'uint16_t makeWord(uint16_t)'
 uint16_t makeWord(uint16_t w);
          ^~~~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:30:19: error: 'byte' was not declared in this scope
 uint16_t makeWord(byte h, byte l);
                   ^~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:30:19: note: suggested alternative: 'bit'
 uint16_t makeWord(byte h, byte l);
                   ^~~~
                   bit
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:30:32: error: expected ')' before 'l'
 uint16_t makeWord(byte h, byte l);
                                ^
In file included from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:9:0:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne/TimerOne.h:290:32: warning: local class 'class loop()::TimerOne' shall not have static data member 'void (* loop()::TimerOne::isrCallback)()' [-fpermissive]
     static void (*isrCallback)();
                                ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne/TimerOne.h:295:27: warning: local class 'class loop()::TimerOne' shall not have static data member 'short unsigned int loop()::TimerOne::pwmPeriod' [-fpermissive]
     static unsigned short pwmPeriod;
                           ^~~~~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne/TimerOne.h:296:26: warning: local class 'class loop()::TimerOne' shall not have static data member 'unsigned char loop()::TimerOne::clockSelectBits' [-fpermissive]
     static unsigned char clockSelectBits;
                          ^~~~~~~~~~~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne/TimerOne.h: In member function 'void loop()::TimerOne::pwm(char, unsigned int)':
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne/TimerOne.h:251:29: error: 'pinMode' was not declared in this scope
  if (pin == TIMER1_A_PIN) { pinMode(TIMER1_A_PIN, OUTPUT); TCCR1A |= _BV(COM1A1); }
                             ^~~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne/TimerOne.h:253:34: error: 'pinMode' was not declared in this scope
  else if (pin == TIMER1_B_PIN) { pinMode(TIMER1_B_PIN, OUTPUT); TCCR1A |= _BV(COM1B1); }
                                  ^~~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne/TimerOne.h:256:34: error: 'pinMode' was not declared in this scope
  else if (pin == TIMER1_C_PIN) { pinMode(TIMER1_C_PIN, OUTPUT); TCCR1A |= _BV(COM1C1); }
                                  ^~~~~~~
In file included from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/ButtonPanel.h:5:0,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:10:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.h: In function 'void loop()':
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.h:42:29: warning: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t loop()::TwoWire::rxBuffer []' [-fpermissive]
     static uint8_t rxBuffer[];
                             ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.h:43:20: warning: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t loop()::TwoWire::rxBufferIndex' [-fpermissive]
     static uint8_t rxBufferIndex;
                    ^~~~~~~~~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.h:44:20: warning: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t loop()::TwoWire::rxBufferLength' [-fpermissive]
     static uint8_t rxBufferLength;
                    ^~~~~~~~~~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.h:46:20: warning: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t loop()::TwoWire::txAddress' [-fpermissive]
     static uint8_t txAddress;
                    ^~~~~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.h:47:29: warning: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t loop()::TwoWire::txBuffer []' [-fpermissive]
     static uint8_t txBuffer[];
                             ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.h:48:20: warning: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t loop()::TwoWire::txBufferIndex' [-fpermissive]
     static uint8_t txBufferIndex;
                    ^~~~~~~~~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.h:49:20: warning: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t loop()::TwoWire::txBufferLength' [-fpermissive]
     static uint8_t txBufferLength;
                    ^~~~~~~~~~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.h:51:20: warning: local class 'class loop()::TwoWire' shall not have static data member 'uint8_t loop()::TwoWire::transmitting' [-fpermissive]
     static uint8_t transmitting;
                    ^~~~~~~~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.h:54:39: warning: local class 'class loop()::TwoWire' shall not have static data member 'void (* loop()::TwoWire::user_onRequest)()' [-fpermissive]
     static void (*user_onRequest)(void);
                                       ^
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.h:55:38: warning: local class 'class loop()::TwoWire' shall not have static data member 'void (* loop()::TwoWire::user_onReceive)(int)' [-fpermissive]
     static void (*user_onReceive)(int);
                                      ^
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:52:23: error: variable or field 'readMidiCallback' declared void
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:52:28: error: expected ')' before 'channel'
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:52:42: error: expected ')' before 'control'
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:52:56: error: expected ')' before 'value'
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:64:1: error: a function-definition is not allowed here before '{' token
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:97:1: error: a function-definition is not allowed here before '{' token
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:105:1: error: a function-definition is not allowed here before '{' token
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:113:23: error: variable or field 'readMidiCallback' declared void
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:113:28: error: expected ')' before 'channel'
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:113:42: error: expected ')' before 'control'
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:113:56: error: expected ')' before 'value'
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:133:1: error: a function-definition is not allowed here before '{' token
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:162:1: error: a function-definition is not allowed here before '{' token
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:196:1: error: a function-definition is not allowed here before '{' token
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:221:1: error: a function-definition is not allowed here before '{' token
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/usb_api.h:10:0,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:22,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/../usb_midi/usb_api.h:300:23: warning: unused variable 'usbMIDI' [-Wunused-variable]
 extern usb_midi_class usbMIDI;
                       ^~~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/../usb_midi/usb_api.h:332:25: warning: unused variable 'Serial' [-Wunused-variable]
 extern usb_serial_class Serial;
                         ^~~~~~
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:25:0,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/HardwareSerial.h:30:23: warning: unused variable 'Serial1' [-Wunused-variable]
 extern HardwareSerial Serial1;
                       ^~~~~~~
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/Arduino.h:2:0,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/elapsedMillis.h:29,
                 from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:26,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:8:22: warning: unused variable 'A0' [-Wunused-variable]
 const static uint8_t A0 = CORE_ANALOG0_PIN;
                      ^~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:9:22: warning: unused variable 'A1' [-Wunused-variable]
 const static uint8_t A1 = CORE_ANALOG1_PIN;
                      ^~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:10:22: warning: unused variable 'A2' [-Wunused-variable]
 const static uint8_t A2 = CORE_ANALOG2_PIN;
                      ^~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:11:22: warning: unused variable 'A3' [-Wunused-variable]
 const static uint8_t A3 = CORE_ANALOG3_PIN;
                      ^~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:12:22: warning: unused variable 'A4' [-Wunused-variable]
 const static uint8_t A4 = CORE_ANALOG4_PIN;
                      ^~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:13:22: warning: unused variable 'A5' [-Wunused-variable]
 const static uint8_t A5 = CORE_ANALOG5_PIN;
                      ^~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:14:22: warning: unused variable 'A6' [-Wunused-variable]
 const static uint8_t A6 = CORE_ANALOG6_PIN;
                      ^~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:15:22: warning: unused variable 'A7' [-Wunused-variable]
 const static uint8_t A7 = CORE_ANALOG7_PIN;
                      ^~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:17:22: warning: unused variable 'A8' [-Wunused-variable]
 const static uint8_t A8 = CORE_ANALOG8_PIN;
                      ^~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:18:22: warning: unused variable 'A9' [-Wunused-variable]
 const static uint8_t A9 = CORE_ANALOG9_PIN;
                      ^~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:19:22: warning: unused variable 'A10' [-Wunused-variable]
 const static uint8_t A10 = 10;
                      ^~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:20:22: warning: unused variable 'A11' [-Wunused-variable]
 const static uint8_t A11 = CORE_ANALOG11_PIN;
                      ^~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:24:22: warning: unused variable 'SS' [-Wunused-variable]
 const static uint8_t SS   = CORE_SS0_PIN;
                      ^~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:25:22: warning: unused variable 'MOSI' [-Wunused-variable]
 const static uint8_t MOSI = CORE_MOSI0_PIN;
                      ^~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:26:22: warning: unused variable 'MISO' [-Wunused-variable]
 const static uint8_t MISO = CORE_MISO0_PIN;
                      ^~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:27:22: warning: unused variable 'SCK' [-Wunused-variable]
 const static uint8_t SCK  = CORE_SCLK0_PIN;
                      ^~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:32:22: warning: unused variable 'SDA' [-Wunused-variable]
 const static uint8_t SDA  = CORE_SDA0_PIN;
                      ^~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:35:22: warning: unused variable 'SCL' [-Wunused-variable]
 const static uint8_t SCL  = CORE_SCL0_PIN;
                      ^~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/pins_arduino.h:59:30: warning: unused variable 'digital_pin_table_PGM' [-Wunused-variable]
 extern const uint8_t PROGMEM digital_pin_table_PGM[];
                              ^~~~~~~~~~~~~~~~~~~~~
In file included from /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/WProgram.h:27:0,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/50C4F338AEB106FB7D5E313CC24260AC/pch/Arduino.h:1,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:7:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy/CrashReport.h:13:25: warning: unused variable 'CrashReport' [-Wunused-variable]
 extern CrashReportClass CrashReport;
                         ^~~~~~~~~~~
In file included from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:9:0:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne/TimerOne.h:620:17: warning: unused variable 'Timer1' [-Wunused-variable]
 extern TimerOne Timer1;
                 ^~~~~~
In file included from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/ButtonPanel.h:5:0,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:10:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.h:120:16: warning: unused variable 'Wire' [-Wunused-variable]
 extern TwoWire Wire;
                ^~~~
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:48:18: warning: unused variable 'virt_faders' [-Wunused-variable]
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:49:19: warning: unused variable 'active_virt_fader' [-Wunused-variable]
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:50:17: warning: unused variable 'cc_buttons' [-Wunused-variable]
In file included from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:8:0:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor/CapacitiveSensor.h: At global scope:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor/CapacitiveSensor.h:412:2: warning: 'loop()::CapacitiveSensor::CapacitiveSensor(uint8_t, uint8_t)' used but never defined
  CapacitiveSensor(uint8_t sendPin, uint8_t receivePin);
  ^~~~~~~~~~~~~~~~
In file included from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/sketch_feb8a.ino:10:0:
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-625-1vabrtv.a5iw/sketch_feb8a/ButtonPanel.h:19:5: warning: 'loop()::ButtonPanel::ButtonPanel(uint8_t)' used but never defined
     ButtonPanel(uint8_t i2c_addr);
     ^~~~~~~~~~~

Using library CapacitiveSensor at version 0.5.1 in folder: /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor
Using library TimerOne at version 1.1 in folder: /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne
Using library Wire at version 1.0 in folder: /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire
exit status 1

Compilation error: variable or field 'readMidiCallback' declared void
 
Last edited:
Tried to compile the code and it finished OK...

1707428257115.png


Could the red circle below be the problem? A double declaration?
1707428437649.png

I just copied the raw MotorizedFader.cpp code into an empty sketch, added the 2 ButtonPanel files to the sketch, set USB Type to "MIDI" and compiled it.

Paul
 
great to hear it's possible.

i try the same as you describe but other errors comming up.
I must be doing something wrong.

could you send me the binary file?
 
hey paul it think it´s done could you check my code please?

Makefile:
FQBN: teensy:avr:teensy2:usb=midi
Using board 'teensy2' from platform in folder: /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1
Using core 'teensy' from platform in folder: /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1

Detecting libraries used...
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch/sketch_feb8b.ino.cpp -o /dev/null
Alternatives for CapacitiveSensor.h: [CapacitiveSensor@0.5.1]
ResolveLibrary(CapacitiveSensor.h)
  -> candidates: [CapacitiveSensor@0.5.1]
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch/sketch_feb8b.ino.cpp -o /dev/null
Alternatives for TimerOne.h: [TimerOne@1.1]
ResolveLibrary(TimerOne.h)
  -> candidates: [TimerOne@1.1]
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch/sketch_feb8b.ino.cpp -o /dev/null
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@1.0]
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch/sketch_feb8b.ino.cpp -o /dev/null
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch/ButtonPanel.cpp -o /dev/null
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor/CapacitiveSensor.cpp -o /dev/null
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne/TimerOne.cpp -o /dev/null
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/utility /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.cpp -o /dev/null
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/utility /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/WireIMXRT.cpp -o /dev/null
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/utility /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/WireKinetis.cpp -o /dev/null
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/utility /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/utility/twi.c -o /dev/null
Generating function prototypes...
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch/sketch_feb8b.ino.cpp -o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/871348876/sketch_merged.cpp
/Users/bt/Library/Arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/871348876/sketch_merged.cpp
Compiling sketch...
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-tools/1.58.0/precompile_helper /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F /Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -x c++-header -Os -g -Wall -ffunction-sections -fdata-sections -MMD -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/pch/Arduino.h -o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/pch/Arduino.h.gch
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -c -Os -g -Wall -ffunction-sections -fdata-sections -MMD -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/pch -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch/ButtonPanel.cpp -o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch/ButtonPanel.cpp.o
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -c -Os -g -Wall -ffunction-sections -fdata-sections -MMD -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/pch -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch/sketch_feb8b.ino.cpp -o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch/sketch_feb8b.ino.cpp.o
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-3122-gkb1uv.kql5q/sketch_feb8b/ButtonPanel.cpp: In member function 'uint8_t ButtonPanel::i2cRead(GpioSide)':
/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-3122-gkb1uv.kql5q/sketch_feb8b/ButtonPanel.cpp:112:35: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
     Wire.requestFrom(m_i2c_addr, 1);
                                   ^
In file included from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-3122-gkb1uv.kql5q/sketch_feb8b/ButtonPanel.h:5:0,
                 from /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/.arduinoIDE-unsaved202418-3122-gkb1uv.kql5q/sketch_feb8b/ButtonPanel.cpp:1:
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.h:87:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)
     uint8_t requestFrom(int address, int quantity) {
             ^~~~~~~~~~~
/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.h:80:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)
     uint8_t requestFrom(uint8_t address, uint8_t quantity) {
             ^~~~~~~~~~~
Compiling libraries...
Compiling library "CapacitiveSensor"
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -c -Os -g -Wall -ffunction-sections -fdata-sections -MMD -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/pch -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor/CapacitiveSensor.cpp -o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/libraries/CapacitiveSensor/CapacitiveSensor.cpp.o
Compiling library "TimerOne"
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -c -Os -g -Wall -ffunction-sections -fdata-sections -MMD -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/pch -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne/TimerOne.cpp -o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/libraries/TimerOne/TimerOne.cpp.o
Compiling library "Wire"
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -c -Os -g -Wall -ffunction-sections -fdata-sections -MMD -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/pch -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/utility /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/WireIMXRT.cpp -o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/libraries/Wire/WireIMXRT.cpp.o
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -c -Os -g -Wall -ffunction-sections -fdata-sections -MMD -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/pch -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/utility /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/Wire.cpp -o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/libraries/Wire/Wire.cpp.o
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-g++ -c -Os -g -Wall -ffunction-sections -fdata-sections -MMD -fno-exceptions -fpermissive -felide-constructors -std=gnu++11 -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/pch -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/utility /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/WireKinetis.cpp -o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/libraries/Wire/WireKinetis.cpp.o
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-gcc -c -Os -g -Wall -ffunction-sections -fdata-sections -MMD -mmcu=atmega32u4 -DTEENSYDUINO=158 -DARDUINO_ARCH_AVR -DARDUINO=10607 -DARDUINO_TEENSY2 -DF_CPU=16000000L -DUSB_MIDI -DLAYOUT_US_ENGLISH -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/cores/teensy -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire -I/Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/utility /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire/utility/twi.c -o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/libraries/Wire/utility/twi.c.o
Compiling core...
Using precompiled core: /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/cores/teensy_avr_teensy2_usb_midi,speed_16,keys_en-us_3b55e4369f956bfc9b4bdc7ea4db4f31/core.a
Linking everything together...
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-gcc -Os -Wl,--gc-sections,--relax -mmcu=atmega32u4 -o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch_feb8b.ino.elf /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch/ButtonPanel.cpp.o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch/sketch_feb8b.ino.cpp.o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/libraries/CapacitiveSensor/CapacitiveSensor.cpp.o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/libraries/TimerOne/TimerOne.cpp.o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/libraries/Wire/Wire.cpp.o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/libraries/Wire/WireIMXRT.cpp.o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/libraries/Wire/WireKinetis.cpp.o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/libraries/Wire/utility/twi.c.o /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/../../cores/teensy_avr_teensy2_usb_midi,speed_16,keys_en-us_3b55e4369f956bfc9b4bdc7ea4db4f31/core.a -L/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F -lm
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch_feb8b.ino.elf /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch_feb8b.ino.eep
Opening Teensy Loader...
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-objcopy -O ihex -R .eeprom /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch_feb8b.ino.elf /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch_feb8b.ino.hex
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-tools/1.58.0/teensy_secure encrypthex TEENSY2 /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch_feb8b.ino.hex
This board does not support code encryption
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-tools/1.58.0/teensy_post_compile -file=sketch_feb8b.ino -path=/private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F -tools=/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-tools/1.58.0/ -board=TEENSY2
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-tools/1.58.0/stdout_redirect /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch_feb8b.ino.sym /Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-objdump -t -C /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch_feb8b.ino.elf
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-tools/1.58.0/teensy_size /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch_feb8b.ino.elf
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-tools/1.58.0/stdout_redirect /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch_feb8b.ino.lst /Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-objdump -d -S -C /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch_feb8b.ino.elf

Using library CapacitiveSensor at version 0.5.1 in folder: /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/CapacitiveSensor
Using library TimerOne at version 1.1 in folder: /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/TimerOne
Using library Wire at version 1.0 in folder: /Users/bt/Library/Arduino15/packages/teensy/hardware/avr/1.58.1/libraries/Wire
/Users/bt/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/avr/bin/avr-size -A /private/var/folders/7n/nds70x3j26z73hmzn0q1ds_c0000gn/T/arduino/sketches/33F3A2B94FFD6A9344349F3FA28D374F/sketch_feb8b.ino.elf
Sketch uses 10916 bytes (33%) of program storage space. Maximum is 32256 bytes.
Global variables use 732 bytes (28%) of dynamic memory, leaving 1828 bytes for local variables. Maximum is 2560 bytes.
 
Compile was successful

Code:
Sketch uses 10916 bytes (33%) of program storage space. Maximum is 32256 bytes.
Global variables use 732 bytes (28%) of dynamic memory, leaving 1828 bytes for local variables. Maximum is 2560 bytes.
 
Back
Top