sparkfun / SparkFun_ADXL345_Arduino_Library

Arduino Library for the ADXL345
46 stars 52 forks source link

error: ISO C++ forbids initialization #12

Open Mitchell-Findley opened 6 years ago

Mitchell-Findley commented 6 years ago

initialization needs to be moved to constructor.

    int _CS = 10;
bool I2C = true;
unsigned long SPIfreq = 5000000;