Carter Nelson
Carter Nelson
OK, updated that example with #99. Thanks for catching this.
Looks OK. What was the original board being built for that created the warn?
Thanks, recreated: ``` /home/user/Arduino/libraries/Adafruit_MPR121/Adafruit_MPR121.cpp:109:7: warning: 'B10000000' is deprecated: use 0b10000000 instead [-Wdeprecated-declarations] 109 | B10000000 + 12; // 5 bits for baseline tracking & proximity disabled + X | ^~~~~~~~~...
This was introduced by #436. The Arduino Mbed OS Nano Board Package is using an older version of pico-sdk: https://github.com/arduino/ArduinoCore-mbed/blob/main/cores/arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/generated/pico/version.h that does not have the function being referenced: https://github.com/arduino/ArduinoCore-mbed/blob/main/cores/arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2_common/hardware_pio/include/hardware/pio.h Here...
These BSP's are using older versions of the pico-sdk. The best fix would be for them to update. But that may never happen. Options are: (a) use a different BSP...
Try updating to the latest library release. There's was a minor compile time issue that I'm not sure how you did not run into. But it's been fixed now. The...
If altering the sensitivity, filtering, and debounce settings are desired, that functionality should be provided by new getter/setter member functions. ex: `setDR()`, `setDT()`, etc.
What Arduino board are you using? What sketch are you running?
If you comment out line 70: https://github.com/adafruit/Adafruit_MPR121/blob/ca5deb53ff53e9c21951dd85f068e0ddf1ad492e/examples/MPR121test/MPR121test.ino#L69-L70 and re-run the sketch, what output do you get in the Serial Monitor?
Try adding a call to `setAutoconfig()` as the last line in `void setup()`: ```cpp cap.setAutoconfig(true); ```