Help modifying code

Arduino: 1.8.13 (Mac OS X), Board: "Arduino Due (Programming Port)"











/Applications/Arduino.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/glennholberg/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/glennholberg/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/glennholberg/Documents/Arduino/libraries -fqbn=arduino:sam:arduino_due_x_dbg -ide-version=10813 -build-path /var/folders/sr/r_qf1c_n19b3gr2rrtgsmqg40000gn/T/arduino_build_750933 -warnings=none -build-cache /var/folders/sr/r_qf1c_n19b3gr2rrtgsmqg40000gn/T/arduino_cache_805991 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.bossac.path=/Users/glennholberg/Library/Arduino15/packages/arduino/tools/bossac/1.6.1-arduino -prefs=runtime.tools.bossac-1.6.1-arduino.path=/Users/glennholberg/Library/Arduino15/packages/arduino/tools/bossac/1.6.1-arduino -prefs=runtime.tools.arm-none-eabi-gcc.path=/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -verbose /Users/glennholberg/Documents/Arduino/7_newgrid/7_newgrid.ino
/Applications/Arduino.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Applications/Arduino.app/Contents/Java/hardware -hardware /Users/glennholberg/Library/Arduino15/packages -tools /Applications/Arduino.app/Contents/Java/tools-builder -tools /Applications/Arduino.app/Contents/Java/hardware/tools/avr -tools /Users/glennholberg/Library/Arduino15/packages -built-in-libraries /Applications/Arduino.app/Contents/Java/libraries -libraries /Users/glennholberg/Documents/Arduino/libraries -fqbn=arduino:sam:arduino_due_x_dbg -ide-version=10813 -build-path /var/folders/sr/r_qf1c_n19b3gr2rrtgsmqg40000gn/T/arduino_build_750933 -warnings=none -build-cache /var/folders/sr/r_qf1c_n19b3gr2rrtgsmqg40000gn/T/arduino_cache_805991 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.bossac.path=/Users/glennholberg/Library/Arduino15/packages/arduino/tools/bossac/1.6.1-arduino -prefs=runtime.tools.bossac-1.6.1-arduino.path=/Users/glennholberg/Library/Arduino15/packages/arduino/tools/bossac/1.6.1-arduino -prefs=runtime.tools.arm-none-eabi-gcc.path=/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1 -verbose /Users/glennholberg/Documents/Arduino/7_newgrid/7_newgrid.ino
Using board 'arduino_due_x_dbg' from platform in folder: /Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11
Using core 'arduino' from platform in folder: /Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11
Detecting libraries used...
/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10813 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x /var/folders/sr/r_qf1c_n19b3gr2rrtgsmqg40000gn/T/arduino_build_750933/sketch/7_newgrid.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
  -> candidates: [SPI@1.0]
/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10813 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/SPI/src /var/folders/sr/r_qf1c_n19b3gr2rrtgsmqg40000gn/T/arduino_build_750933/sketch/7_newgrid.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
  -> candidates: [Wire@1.0]
/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10813 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/SPI/src -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/Wire/src /var/folders/sr/r_qf1c_n19b3gr2rrtgsmqg40000gn/T/arduino_build_750933/sketch/7_newgrid.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for Adafruit_GFX.h: [Adafruit_GFX_Library@1.1.6]
ResolveLibrary(Adafruit_GFX.h)
  -> candidates: [Adafruit_GFX_Library@1.1.6]
/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10813 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/SPI/src -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/Wire/src -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_GFX_Library /var/folders/sr/r_qf1c_n19b3gr2rrtgsmqg40000gn/T/arduino_build_750933/sketch/7_newgrid.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Alternatives for Adafruit_RA8875.h: [Adafruit_RA8875@1.4.0]
ResolveLibrary(Adafruit_RA8875.h)
  -> candidates: [Adafruit_RA8875@1.4.0]
/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10813 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/SPI/src -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/Wire/src -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_GFX_Library -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_RA8875 /var/folders/sr/r_qf1c_n19b3gr2rrtgsmqg40000gn/T/arduino_build_750933/sketch/7_newgrid.ino.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10813 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/SPI/src -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/Wire/src -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_GFX_Library -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_RA8875 /Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/SPI/src/SPI.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10813 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/SPI/src -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/Wire/src -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_GFX_Library -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_RA8875 /Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/Wire/src/Wire.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10813 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/SPI/src -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/Wire/src -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_GFX_Library -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_RA8875 /Users/glennholberg/Documents/Arduino/libraries/Adafruit_GFX_Library/Adafruit_GFX.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10813 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/SPI/src -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/Wire/src -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_GFX_Library -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_RA8875 /Users/glennholberg/Documents/Arduino/libraries/Adafruit_GFX_Library/glcdfont.c -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10813 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/SPI/src -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/Wire/src -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_GFX_Library -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_RA8875 /Users/glennholberg/Documents/Arduino/libraries/Adafruit_RA8875/Adafruit_RA8875.cpp -o /dev/null -DARDUINO_LIB_DISCOVERY_PHASE
Generating function prototypes...
/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -w -x c++ -E -CC -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10813 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/SPI/src -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/Wire/src -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_GFX_Library -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_RA8875 /var/folders/sr/r_qf1c_n19b3gr2rrtgsmqg40000gn/T/arduino_build_750933/sketch/7_newgrid.ino.cpp -o /var/folders/sr/r_qf1c_n19b3gr2rrtgsmqg40000gn/T/arduino_build_750933/preproc/ctags_target_for_gcc_minus_e.cpp -DARDUINO_LIB_DISCOVERY_PHASE
/Applications/Arduino.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/sr/r_qf1c_n19b3gr2rrtgsmqg40000gn/T/arduino_build_750933/preproc/ctags_target_for_gcc_minus_e.cpp
Compiling sketch...
/Users/glennholberg/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++ -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD -mcpu=cortex-m3 -mthumb -DF_CPU=84000000L -DARDUINO=10813 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-DUSB_MANUFACTURER=\"Arduino LLC\"" "-DUSB_PRODUCT=\"Arduino Due\"" -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/libsam -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/CMSIS/Include/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/system/CMSIS/Device/ATMEL/ -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/cores/arduino -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/variants/arduino_due_x -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/SPI/src -I/Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/Wire/src -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_GFX_Library -I/Users/glennholberg/Documents/Arduino/libraries/Adafruit_RA8875 /var/folders/sr/r_qf1c_n19b3gr2rrtgsmqg40000gn/T/arduino_build_750933/sketch/7_newgrid.ino.cpp -o /var/folders/sr/r_qf1c_n19b3gr2rrtgsmqg40000gn/T/arduino_build_750933/sketch/7_newgrid.ino.cpp.o
/Users/glennholberg/Documents/Arduino/7_newgrid/7_newgrid.ino: In function 'void loop()':
7_newgrid:50:12: error: 'class Adafruit_RA8875' has no member named 'bufferEmpty'
   if (!tft.bufferEmpty()) {
            ^
7_newgrid:51:5: error: 'TS_Point' was not declared in this scope
     TS_Point p = tft.getPoint();
     ^
7_newgrid:51:14: error: expected ';' before 'p'
     TS_Point p = tft.getPoint();
              ^
7_newgrid:54:17: error: 'p' was not declared in this scope
         x = map(p.x, TS_MINX, TS_MAXX, 0, tft.width());
                 ^
Using library SPI at version 1.0 in folder: /Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/SPI 
Using library Wire at version 1.0 in folder: /Users/glennholberg/Library/Arduino15/packages/arduino/hardware/sam/1.6.11/libraries/Wire 
Using library Adafruit_GFX_Library at version 1.1.6 in folder: /Users/glennholberg/Documents/Arduino/libraries/Adafruit_GFX_Library 
Using library Adafruit_RA8875 at version 1.4.0 in folder: /Users/glennholberg/Documents/Arduino/libraries/Adafruit_RA8875 
exit status 1
'class Adafruit_RA8875' has no member named 'bufferEmpty'