I am a beginner in I2C need help to program this LED driver(PCA9956B). If you have any sample code that will be much better.
I am a beginner in I2C need help to program this LED driver(PCA9956B). If you have any sample code that will be much better.
Hello,
To see that you device is wired correctly, and able to communicate with the sensor, you may program it with the TWI Scanner example to see that it is working - just follow the example's documentation, and see that the LED driver shows up in the nRF52832's Logs.
When that is confirmed, you may look at the TWI Sensor example to see how you may conduct the TWI communication. The example demonstrates how you can interface a senor by reading and writing to it - much like you will be doing with the LED driver.
To see how you may structure your TWI driver in a good way you may take a look at the structure of the lis2dh12 TWI sensor interface, that you can find in /components/drivers_ext/lis2dh12.
You will have to find the registers addresses / TWI interface from the LED drivers datasheet. Alternatively, you could look into public github repositories that might have implemented the TWI driver for the PCA9956B LED driver. A brief search yielded this repository which seems to do just that, among some other things - thought I have not looked closer into it.
Best regards,
Karl
Thank You for explaining that simple.....
Hello again,
I am not sure I understand you correctly. Is there something that is still unclear, that you would like help with?
If so, please do not hesitate to ask!
In the case that I have misunderstood your reply and you are just saying thank you for the explanation: No problem at all, I am happy to help!
Best regards,
Karl
Hello Karl,
I am actually thanking you for a brief explanation. If anything required I'll ask...
Thanks, Again.
Hello again,
Oh, my apologies, I was unsure due to the dots following your comment.
No problem at all, I am happy to hear that you found my answer useful, and I hope that by following the directions I gave you, will provide you with the results you were looking for.
Good luck with your development!
Best regards,
Karl
Hello again,
Oh, my apologies, I was unsure due to the dots following your comment.
No problem at all, I am happy to hear that you found my answer useful, and I hope that by following the directions I gave you, will provide you with the results you were looking for.
Good luck with your development!
Best regards,
Karl