let me first say that I'm somewhat of a noob when it comes to i2c and serial communication. I've been trying for 2 days now to grasp it, reading datasheets, youtube videos etc. And I'm having a hard time grasping some concepts. I'm working within the node.js i2c library and referencing some python i2c projects.
1). my biggest struggle is understanding what the data means. I'm using the MPR121 sensor. The response is a buffer which is has a length of 32. I'm not sure what to do with these 32 pieces of info and what they mean. I'm not sure how to use the data sheet to tell me. if I convert my buffer to JSON it looks something like... [2,0,0,0,154,0,103,0,148,0,151,0,151,0,150,0,150,0,151,0,148,0,143,0,139,0,149,0,0,0,38,35] but again, I'm not sure what to do with that.
2). The node.js i2c library requires length for readByteData, where the python version doesn't. I'm not sure how I find that info besides using trial and error, like I did before to discover it was 32.
3). Other examples (node.js + i2c) use buffer functions like readInt16BE(2*1) and so on but node's documentation doesn't really explain what that is used for and why or why I shouldn't use it in my project.
I understand I'm probably over-ambitious and biting off more than I can chew. I also know that I should prob learn some basics first but I can't really find anything that teaches the basics. I guess I'm just looking for those few small answers to help make it click. Thanks.