LIGHTNING DETECTOR CODE does compile foe xx_MO boards suchas TRINKET MO

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]

Hi William.

Sadly our library may not compatible with the board you’re trying to use. In the future we may add support, but for now you’re going to need to stick to boards the code will compile for. I haven’t tested it, but the SPI code does compile for the Trinket M0. You might give that a try. We have had success using this board over SPI.

I agree that the code works for the SPI version which confirms that there is a coding error in the Library and I would expect Sparkfun to take action to correct code errors.

I’m not a experienced programmer but I was able to modify the library file to get it to work on the TRINKET MO in 12c mode. Attached are the modified library files; maybe someone in Sparkfun can get then implemented into the library.

SparkFun_AS3935_wjl.h (9.93 KB)

SparkFun_AS3935_wjl.cpp (16.9 KB)

Thanks for the post, William. I will let our product team assigned to this product know.

With the latest Arduino Library release v1.3.4, the error has been fixed. I’ve tested on boards here in house so can confirm the fix. You can update it through the Arduino Library Manager or download it directly from the Github Repo:

https://github.com/sparkfun/SparkFun_AS … no_Library

Thanks!

Thanks

Bill

Thanks indeed.