sparkfun / SparkFun_AS3935_Lightning_Detector_Arduino_Library

Other
37 stars 19 forks source link

Error Compiling: 'SPISettings()' was not declared in this scope #11

Closed tbitson closed 5 years ago

tbitson commented 5 years ago

Complier can't find the function "SPISettings(_spiPortSpeed, MSBFIRST, SPI_MODE1)" in line 468: _spiPort->beginTransaction(SPISettings(_spiPortSpeed, MSBFIRST, SPI_MODE1)); Same issue on line 491.

I searched to code and example, couldn't find the function. Is it in one of the libraries?

edspark commented 5 years ago

I'll need a little more information. Are you using Arduino, and with what micro-controller? If you wouldn't mind also linking your code, or is it just the example code?

edspark commented 5 years ago

Hello, I'm going to close this out for now. Please reopen it if you're still having some issues!