NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: I cannot make i2c work in raspberry pi Zero W



ea1abz%gmail.com@localhost (Ramiro Aceves) writes:

>Just a probably silly question: If I want to read the sensor that is
>being used by the bmh280thp driver, should I stop the driver first or
>the sensor can be inquired by the driver and my program ?

You should remove the driver.

The driver gets regularly called (by envsys) and talks to the hardware.
If you do the same using the iic driver, both accesses get mixed.

For simple hardware that just needs a register read, that might be
harmless. But the bm280 needs a sequence of write and read accesses
that will be disturbed. You won't get correct measurements.

For other i2c controlled hardware (think about a power controller) you
might even cause permanent damage.



Home | Main Index | Thread Index | Old Index