Skip to content

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

@Ajithkumar1021

Description

@Ajithkumar1021

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions