Closed gigapod closed 2 days ago
Tested on XRP and XBee, working on both.
@faludi if you test this one, you'll run into an issue where it says the device isn't connected. The root problem is with the current ping implementation that checks to see if a device is connected to the I2C bus with a specified address. Currently, it writes a zero byte to the device. With most devices, this works fine. But on the CAP1203, it goes into a weird state, and attempting to read the product ID register right afterwards gives garbage, so the examples quit right there. I'm working on an update to Qwiic_I2C_Py in the v0.10.0 branch: https://github.com/sparkfun/Qwiic_I2C_Py/tree/v0.10.0 You'll need to copy the files in the qwiic_i2c
folder onto your XBee, then it should work fine. Please let me know if you run into any trouble, thanks!
@faludi FYI the Qwiic_I2C_Py library is about to get the update that resolves this. Ended up changing more than just changing the ping behavior, so it will be included in the v1.0.0 release of that library. See here: https://github.com/sparkfun/Qwiic_I2C_Py/pull/16
Confirmed working on XBee. This particular device lives at Digi HQ in Minneapolis, so all firmware and file updates had to be executed remotely. Zip-zap, it has a new brain and is running great! IoT does have its awesome moments.
Board
SparkFun Capacitive Touch Slider - CAP1203
Notes
Driver