BareConductive/mpr121

can i use touch sense(input) and digital write(output) at same time in MPR121

Opened this issue · 0 comments

I used it like this. But input (touch sense) does not respond and output works fine as per the code in mpr 121.

MPR121.setNumDigPins(3);
MPR121.pinMode(11, OUTPUT);

if (MPR121.touchStatusChanged()) {

MPR121.updateTouchData();
for (int i = 0; i < numElectrodes; i++) {
  if (MPR121.isNewTouch(i)) {
   

    if (i == 9) {

digitalWrite(load2,HIGH);
}

if (Power == 0) {

MPR121.digitalWrite(11,load1);
}