I am new to Argon. The following code works with Electron, but it does not work with Argon. What needs to be changed? Any information will be appreciated.
// Connect the Adafruit LIS3DH breakout
// https://www.adafruit.com/products/2809
// VIN: 3V3
// GND: GND
// SCL: C5 (Electron Wire1)
// SDA: C4 (Electron Wire1)
// INT: WKP
LIS3DHI2C accel(Wire1, 0, WKP);
// Make sure you match the same Wire interface in the constructor to LIS3DHI2C to this!
Wire1.setSpeed(CLOCK_SPEED_100KHZ);
Wire1.begin();
// Initialize sensor
LIS3DHConfig config;
config.setAccelMode(LIS3DH::RATE_100_HZ);
bool setupSuccess = accel.setup(config);
Serial.printlnf("setupSuccess=%d", setupSuccess);
if(accel.getSample(sample))
Serial.printlnf("%d,%d,%d", sample.x, sample.y, sample.z);