Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Adafruit_MPR121.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "Adafruit_MPR121.h"

// uncomment to use autoconfig !
//#define AUTOCONFIG // use autoconfig (Yes it works pretty well!)
// #define AUTOCONFIG // use autoconfig (Yes it works pretty well!)

/*!
* @brief Default constructor
Expand Down Expand Up @@ -106,8 +106,8 @@ bool Adafruit_MPR121::begin(uint8_t i2caddr, TwoWire *theWire,

// enable X electrodes and start MPR121
byte ECR_SETTING =
B10000000 + 12; // 5 bits for baseline tracking & proximity disabled + X
// amount of electrodes running (12)
0b10000000 + 12; // 5 bits for baseline tracking & proximity disabled + X
// amount of electrodes running (12)
writeRegister(MPR121_ECR, ECR_SETTING); // start with above ECR setting

return true;
Expand Down