-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hi,
I know, this is already pretty old , but I wanted to pull your attention to a very small error:
In line 30:
i2c.writeto_mem(30, 0x00, pack('B', 0b111000)) should read: i2c.writeto_mem(30, 0x00, pack('B', 0b1111000)) (0x78 instead of 0x38)
The program works fine nevertheless only that the average is 2 instead of 8.
I have written a complete hcm5883 driver for a course on IoT and had quite a few problems with it. Looking at your code helped me a lot to find a bug I would probably not have found otherwise. Starting from a worrking program makes things so much easier.
Thanks a lot.
kmkeu3r3u2ihr and fabse-hack
Metadata
Metadata
Assignees
Labels
No labels