Closed slechtvalk200 closed 1 year ago
Hi, could you resolve the issue? Can you also confirm that you get meaningful values with the minimal code snippet
I don't have a Atmega168PA to test. With several of the official Arduino boards everything works fine. Arduino doesn't provide very good error handling system. If something goes wrong in the code, you may or may not get a print output. Serial communication writes to a buffer which might not get flushed in case of a crash.
The drivers internally use TwoWire which might cause problems with your platform. Else the commands should be the same as in the code snippets.
closed due to inactivity
I am trying to use the example code on a longan I2C CAN BUS module. I use a adafruit friend as FTDI.
When i run this code : (stripped to bare minimum)
I get no println at all. Even not the Serial.println("1"); So there has to be something very wrong, when i comment line "error = scd4x.stopPeriodicMeasurement();" . There is no problem at all. Then i have all println, so then my code run.
in arduino-1.8.15\libraries\arduino-i2c-scd4x\src\SensirionI2CScd4x.cpp , when i comment out "error = SensirionI2CCommunication::sendFrame(SCD4X_I2C_ADDRESS, txFrame,*_i2cBus);" Then it runs again.
I have connection to the scd41, when i do a i2c scan, i see a device on 0x62.
arduino-snippets/SCD4x_I2C_minimal_example/SCD4x_I2C_minimal_example.ino works great.
Any idea what the problem could be?