Timeline for How to connect two devices via i2c?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 1, 2024 at 15:31 | comment | added | hcheung | @sonlas10, my apology, i re-read the source code in more detail, I was wrong. Maybe you should consider to raise an issue at the library GitHub. | |
| May 1, 2024 at 11:41 | comment | added | chrisl |
@sonlas10 Sorry, had not seen, how exactly that is defined. It is actually an enum inside of the class. The documentation does not mention this. I could compile when adding LIS3MDL:: in front of the names device_LIS3MDL and sa1_high/sa1_low. That tells the compiler, that this is a member of the class LIS3MDL
|
|
| May 1, 2024 at 11:39 | history | edited | chrisl | CC BY-SA 4.0 |
added 45 characters in body
|
| May 1, 2024 at 10:00 | comment | added | sonlas10 |
@hcheung If I use mag1.init(0x1C) I have this error: error: invalid conversion from 'int' to 'LIS3MDL::deviceType'. Also I tried in binary (as in the documentation) mag1.init(0b0011110) and the error was the same.
|
|
| Apr 30, 2024 at 22:01 | comment | added | sonlas10 | I tried but I got this error: 'device_LIS3MDL' was not declared in this scope. | |
| Apr 30, 2024 at 21:22 | history | answered | chrisl | CC BY-SA 4.0 |