{"id":23744870,"url":"https://github.com/stm32duino/lis3mdl","last_synced_at":"2025-09-08T00:37:20.509Z","repository":{"id":54830760,"uuid":"97944910","full_name":"stm32duino/LIS3MDL","owner":"stm32duino","description":"Arduino library to support the LIS3MDL high-performance 3-axis magnetometer","archived":false,"fork":false,"pushed_at":"2021-10-05T16:33:52.000Z","size":32,"stargazers_count":8,"open_issues_count":0,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-04T19:43:05.618Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stm32duino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-21T12:21:51.000Z","updated_at":"2025-09-01T02:11:10.000Z","dependencies_parsed_at":"2022-08-14T04:10:29.578Z","dependency_job_id":null,"html_url":"https://github.com/stm32duino/LIS3MDL","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/stm32duino/LIS3MDL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLIS3MDL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLIS3MDL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLIS3MDL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLIS3MDL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stm32duino","download_url":"https://codeload.github.com/stm32duino/LIS3MDL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLIS3MDL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274117488,"owners_count":25225102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-31T12:50:34.065Z","updated_at":"2025-09-08T00:37:20.480Z","avatar_url":"https://github.com/stm32duino.png","language":"C","readme":"# LIS3MDL\nArduino library to support the LIS3MDL high-performance 3D magnetometer\n\n## API\n\nThis sensor uses I2C or SPI to communicate.\nFor I2C it is then required to create a TwoWire interface before accessing to the sensors:  \n\n    TwoWire dev_i2c(I2C_SDA, I2C_SCL);  \n    dev_i2c.begin();\n\nFor SPI it is then required to create a SPI interface before accessing to the sensors:  \n\n    SPIClass dev_spi(SPI_MOSI, SPI_MISO, SPI_SCK);  \n    dev_spi.begin();\n\nAn instance can be created and enabled when the I2C bus is used following the procedure below:  \n\n    LIS3MDLSensor Magneto(\u0026dev_i2c);\n    Magneto.begin();\n    Magneto.Enable();\n\nAn instance can be created and enabled when the SPI bus is used following the procedure below:  \n\n    LIS3MDLSensor Magneto(\u0026dev_spi, CS_PIN);\n    Magneto.begin();\n    Magneto.Enable();\n\nThe access to the sensor values is done as explained below:  \n\n  Read magnetometer.  \n\n    int32_t magnetometer[3];\n    Magneto.GetAxes(magnetometer);  \n\n## Documentation\n\nYou can find the source files at  \nhttps://github.com/stm32duino/LIS3MDL\n\nThe LIS3MDL datasheet is available at  \nhttp://www.st.com/content/st_com/en/products/mems-and-sensors/e-compasses/lis3mdl.html\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstm32duino%2Flis3mdl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstm32duino%2Flis3mdl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstm32duino%2Flis3mdl/lists"}