Advertisement
irieelectronics

bus pirate (I2C MPR121 Setup)

Aug 22nd, 2015
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. mpr121
  2.  
  3. [0xB4 0x7B 0x00]
  4.  
  5. // Section A - Controls filtering when data is > baseline.
  6. [0xB4 0x2B 0x01][0xB4 0x2C 0x01][0xB4 0x2D 0x00][0xB4 0x2E 0x00]
  7.  
  8. // Section B - Controls filtering when data is < baseline.
  9. [0xB4 0x2F 0x01][0xB4 0x30 0x01][0xB4 0x31 0x00][0xB4 0x32 0x00]
  10.  
  11. // Section C - Sets touch and release thresholds for each electrode
  12. [0xB4 0x41 0x0F][0xB4 0x42 0x0A][0xB4 0x43 0x0F][0xB4 0x44 0x0A][0xB4 0x45 0x0F][0xB4 0x46 0x0A][0xB4 0x47 0x0F][0xB4 0x48 0x0A][0xB4 0x49 0x0F][0xB4 0x4A 0x0A][0xB4 0x4B 0x0F][0xB4 0x4C 0x0A][0xB4 0x4D 0x0F][0xB4 0x4E 0x0A][0xB4 0x4F 0x0F][0xB4 0x50 0x0A][0xB4 0x51 0x0F][0xB4 0x52 0x0A][0xB4 0x53 0x0F][0xB4 0x54 0x0A][0xB4 0x55 0x0F][0xB4 0x56 0x0A][0xB4 0x57 0x0F][0xB4 0x58 0x0A]
  13.  
  14. // Section D
  15. // Set the Filter Configuration
  16. // Set ESI2
  17. [0xB4 0x5D 0x04]
  18.  
  19. // Section E
  20. // Electrode Configuration
  21. // Set ELE_CFG to 0x00 to return to standby mode
  22. [0xB4 0x5E 0x0C]
  23.  
  24. //section F
  25.  
  26. [0xB4 0x7B 0x0B]
  27. [0xB4 0x7D 0xC9]
  28. [0xB4 0x7F 0xB5]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement