Skip to content

small error  #2

@uraich

Description

@uraich

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions