Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

Troubleshooting • Manually communicate with an i2c device?

$
0
0
Greetings!

Question:
Given a device at i2c address "X", can I send commands and see the responses without using a specialized "driver" for it?

For example, I have a distance sensor on device 0x20 and software that reads the value of the sensor. When I interrogate the software it returns a sensor reading and everyone is happy.

However, can I communicate with an i2c device in the same way that one would use a serial console to communicate with a serial device?
(i.e. Can I send a manual "console" command to the i2c distance sensor and see the raw data it returns?)

Statistics: Posted by jharris1993 — Tue Mar 04, 2025 5:06 pm



Viewing all articles
Browse latest Browse all 8609

Trending Articles