Copyright | (c) Marc Fontaine 2017 |
---|---|
License | BSD3 |
Maintainer | Marc.Fontaine@gmx.de |
Stability | experimental |
Portability | GHC-only |
Safe Haskell | Safe |
Language | Haskell98 |
This module demonstrates how to access I2C hardware. The examples print the barometer and the compass mesurements of an I2C IMU (Inertial mesurement Unit). The examples assume that an IMU unit is attached to /dev/i2c-7. Don't use these examples on the internal I2C bus of your PC or Laptop. (Unless you know what you are doing.) As I2C addresses are only 7 Bit wide there is some chance that the addresses of the IMU chips colide with other hardware and that this other hardware gets confused.