I get the following error when trying to rune the LIGHTNING DETECTOR examples such as “Example1_Basic_Lightning_I2C”. The error occues when I am using a “TRINKET MO” board. I am using the latest version of the library(Ver1.3.3); according to GITHUB the latest version was supposes to correct the problem.
invalid conversion from ‘int’ to ‘SF_AS3935_I2C_ADDRESS’ [-fpermissive]. The complete verbose error code follows;
Arduino: 1.8.9 (Windows 10), Board: “Adafruit Trinket M0, Arduino, Off”
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Bill\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Bill\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Bill\Documents\Arduino\libraries -fqbn=adafruit:samd:adafruit_trinket_m0:usbstack=arduino,debug=off -vid-pid=0X239A_0X801E -ide-version=10809 -build-path C:\Users\Bill\AppData\Local\Temp\arduino_build_524924 -warnings=none -build-cache C:\Users\Bill\AppData\Local\Temp\arduino_cache_370929 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.bossac.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -prefs=runtime.tools.openocd.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.openocd-0.9.0-arduino.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.bossac-1.7.0.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -verbose C:\Users\Bill\Documents\Arduino\libraries\SparkFun_AS3935_Lightning_Detector_Arduino_Library\examples\Example1_BasicLightning_I2C\Example1_BasicLightning_I2C.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Bill\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Bill\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Bill\Documents\Arduino\libraries -fqbn=adafruit:samd:adafruit_trinket_m0:usbstack=arduino,debug=off -vid-pid=0X239A_0X801E -ide-version=10809 -build-path C:\Users\Bill\AppData\Local\Temp\arduino_build_524924 -warnings=none -build-cache C:\Users\Bill\AppData\Local\Temp\arduino_cache_370929 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.bossac.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.bossac-1.8.0-48-gb176eee.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.8.0-48-gb176eee -prefs=runtime.tools.openocd.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.openocd-0.9.0-arduino.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.bossac-1.7.0.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.CMSIS-Atmel-1.2.0.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -verbose C:\Users\Bill\Documents\Arduino\libraries\SparkFun_AS3935_Lightning_Detector_Arduino_Library\examples\Example1_BasicLightning_I2C\Example1_BasicLightning_I2C.ino
Using board ‘adafruit_trinket_m0’ from platform in folder: C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1
Using core ‘arduino’ from platform in folder: C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1
Detecting libraries used…
“C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++” -mcpu=cortex-m0plus -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions “-D__SKETCH_NAME__="""Example1_BasicLightning_I2C.ino"""” -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_TRINKET_M0 -DARDUINO_ARCH_SAMD -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON “-DUSB_MANUFACTURER="Adafruit"” “-DUSB_PRODUCT="Trinket M0"” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core/tinyusb/src” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\variants\trinket_m0” “C:\Users\Bill\AppData\Local\Temp\arduino_build_524924\sketch\Example1_BasicLightning_I2C.ino.cpp” -o nul
“C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++” -mcpu=cortex-m0plus -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions “-D__SKETCH_NAME__="""Example1_BasicLightning_I2C.ino"""” -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_TRINKET_M0 -DARDUINO_ARCH_SAMD -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON “-DUSB_MANUFACTURER="Adafruit"” “-DUSB_PRODUCT="Trinket M0"” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core/tinyusb/src” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\variants\trinket_m0” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\SPI” “C:\Users\Bill\AppData\Local\Temp\arduino_build_524924\sketch\Example1_BasicLightning_I2C.ino.cpp” -o nul
“C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++” -mcpu=cortex-m0plus -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions “-D__SKETCH_NAME__="""Example1_BasicLightning_I2C.ino"""” -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_TRINKET_M0 -DARDUINO_ARCH_SAMD -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON “-DUSB_MANUFACTURER="Adafruit"” “-DUSB_PRODUCT="Trinket M0"” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core/tinyusb/src” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\variants\trinket_m0” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\SPI” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Adafruit_ZeroDMA” “C:\Users\Bill\AppData\Local\Temp\arduino_build_524924\sketch\Example1_BasicLightning_I2C.ino.cpp” -o nul
“C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++” -mcpu=cortex-m0plus -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions “-D__SKETCH_NAME__="""Example1_BasicLightning_I2C.ino"""” -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_TRINKET_M0 -DARDUINO_ARCH_SAMD -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON “-DUSB_MANUFACTURER="Adafruit"” “-DUSB_PRODUCT="Trinket M0"” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core/tinyusb/src” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\variants\trinket_m0” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\SPI” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Adafruit_ZeroDMA” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Wire” “C:\Users\Bill\AppData\Local\Temp\arduino_build_524924\sketch\Example1_BasicLightning_I2C.ino.cpp” -o nul
“C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++” -mcpu=cortex-m0plus -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions “-D__SKETCH_NAME__="""Example1_BasicLightning_I2C.ino"""” -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_TRINKET_M0 -DARDUINO_ARCH_SAMD -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON “-DUSB_MANUFACTURER="Adafruit"” “-DUSB_PRODUCT="Trinket M0"” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core/tinyusb/src” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\variants\trinket_m0” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\SPI” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Adafruit_ZeroDMA” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Wire” “-IC:\Users\Bill\Documents\Arduino\libraries\SparkFun_AS3935_Lightning_Detector_Arduino_Library” “C:\Users\Bill\AppData\Local\Temp\arduino_build_524924\sketch\Example1_BasicLightning_I2C.ino.cpp” -o nul
“C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++” -mcpu=cortex-m0plus -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions “-D__SKETCH_NAME__="""Example1_BasicLightning_I2C.ino"""” -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_TRINKET_M0 -DARDUINO_ARCH_SAMD -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON “-DUSB_MANUFACTURER="Adafruit"” “-DUSB_PRODUCT="Trinket M0"” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core/tinyusb/src” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\variants\trinket_m0” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\SPI” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Adafruit_ZeroDMA” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Wire” “-IC:\Users\Bill\Documents\Arduino\libraries\SparkFun_AS3935_Lightning_Detector_Arduino_Library” “C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\SPI\SPI.cpp” -o nul
“C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++” -mcpu=cortex-m0plus -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions “-D__SKETCH_NAME__="""Example1_BasicLightning_I2C.ino"""” -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_TRINKET_M0 -DARDUINO_ARCH_SAMD -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON “-DUSB_MANUFACTURER="Adafruit"” “-DUSB_PRODUCT="Trinket M0"” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core/tinyusb/src” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\variants\trinket_m0” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\SPI” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Adafruit_ZeroDMA” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Wire” “-IC:\Users\Bill\Documents\Arduino\libraries\SparkFun_AS3935_Lightning_Detector_Arduino_Library” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Adafruit_ZeroDMA\utility” “C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Adafruit_ZeroDMA\Adafruit_ZeroDMA.cpp” -o nul
“C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++” -mcpu=cortex-m0plus -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions “-D__SKETCH_NAME__="""Example1_BasicLightning_I2C.ino"""” -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_TRINKET_M0 -DARDUINO_ARCH_SAMD -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON “-DUSB_MANUFACTURER="Adafruit"” “-DUSB_PRODUCT="Trinket M0"” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core/tinyusb/src” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\variants\trinket_m0” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\SPI” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Adafruit_ZeroDMA” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Wire” “-IC:\Users\Bill\Documents\Arduino\libraries\SparkFun_AS3935_Lightning_Detector_Arduino_Library” “C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Wire\Wire.cpp” -o nul
“C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++” -mcpu=cortex-m0plus -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions “-D__SKETCH_NAME__="""Example1_BasicLightning_I2C.ino"""” -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_TRINKET_M0 -DARDUINO_ARCH_SAMD -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON “-DUSB_MANUFACTURER="Adafruit"” “-DUSB_PRODUCT="Trinket M0"” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core/tinyusb/src” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\variants\trinket_m0” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\SPI” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Adafruit_ZeroDMA” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Wire” “-IC:\Users\Bill\Documents\Arduino\libraries\SparkFun_AS3935_Lightning_Detector_Arduino_Library” “C:\Users\Bill\Documents\Arduino\libraries\SparkFun_AS3935_Lightning_Detector_Arduino_Library\SparkFun_AS3935.cpp” -o nul
Generating function prototypes…
“C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++” -mcpu=cortex-m0plus -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions “-D__SKETCH_NAME__="""Example1_BasicLightning_I2C.ino"""” -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_TRINKET_M0 -DARDUINO_ARCH_SAMD -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON “-DUSB_MANUFACTURER="Adafruit"” “-DUSB_PRODUCT="Trinket M0"” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core/tinyusb/src” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\variants\trinket_m0” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\SPI” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Adafruit_ZeroDMA” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Wire” “-IC:\Users\Bill\Documents\Arduino\libraries\SparkFun_AS3935_Lightning_Detector_Arduino_Library” “C:\Users\Bill\AppData\Local\Temp\arduino_build_524924\sketch\Example1_BasicLightning_I2C.ino.cpp” -o “C:\Users\Bill\AppData\Local\Temp\arduino_build_524924\preproc\ctags_target_for_gcc_minus_e.cpp”
“C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags” -u --language-force=c++ -f - --c+±kinds=svpf --fields=KSTtzns --line-directives “C:\Users\Bill\AppData\Local\Temp\arduino_build_524924\preproc\ctags_target_for_gcc_minus_e.cpp”
Compiling sketch…
“C:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++” -mcpu=cortex-m0plus -mthumb -c -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD “-D__SKETCH_NAME__="""Example1_BasicLightning_I2C.ino"""” -DF_CPU=48000000L -DARDUINO=10809 -DARDUINO_TRINKET_M0 -DARDUINO_ARCH_SAMD -DCRYSTALLESS -DADAFRUIT_TRINKET_M0 -D__SAMD21E18A__ -DARM_MATH_CM0PLUS -DUSB_VID=0x239A -DUSB_PID=0x801E -DUSBCON “-DUSB_MANUFACTURER="Adafruit"” “-DUSB_PRODUCT="Trinket M0"” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino/Adafruit_TinyUSB_Core/tinyusb/src” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\cores\arduino” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\variants\trinket_m0” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\SPI” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Adafruit_ZeroDMA” “-IC:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Wire” “-IC:\Users\Bill\Documents\Arduino\libraries\SparkFun_AS3935_Lightning_Detector_Arduino_Library” “C:\Users\Bill\AppData\Local\Temp\arduino_build_524924\sketch\Example1_BasicLightning_I2C.ino.cpp” -o “C:\Users\Bill\AppData\Local\Temp\arduino_build_524924\sketch\Example1_BasicLightning_I2C.ino.cpp.o”
Example1_BasicLightning_I2C:30:38: error: invalid conversion from ‘int’ to ‘SF_AS3935_I2C_ADDRESS’ [-fpermissive]
SparkFun_AS3935 lightning(AS3935_ADDR);
^
In file included from C:\Users\Bill\Documents\Arduino\libraries\SparkFun_AS3935_Lightning_Detector_Arduino_Library\examples\Example1_BasicLightning_I2C\Example1_BasicLightning_I2C.ino:18:0:
C:\Users\Bill\Documents\Arduino\libraries\SparkFun_AS3935_Lightning_Detector_Arduino_Library/SparkFun_AS3935.h:77:5: error: initializing argument 1 of ‘SparkFun_AS3935::SparkFun_AS3935(SF_AS3935_I2C_ADDRESS)’ [-fpermissive]
SparkFun_AS3935(enum SF_AS3935_I2C_ADDRESS address);
^
Using library SPI at version 1.0 in folder: C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\SPI
Using library Adafruit_ZeroDMA at version 1.0.4 in folder: C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Adafruit_ZeroDMA
Using library Wire at version 1.0 in folder: C:\Users\Bill\AppData\Local\Arduino15\packages\adafruit\hardware\samd\1.5.1\libraries\Wire
Using library SparkFun_AS3935_Lightning_Detector_Arduino_Library at version 1.3.3 in folder: C:\Users\Bill\Documents\Arduino\libraries\SparkFun_AS3935_Lightning_Detector_Arduino_Library
exit status 1
invalid conversion from ‘int’ to ‘SF_AS3935_I2C_ADDRESS’ [-fpermissive]