{"id":23744944,"url":"https://github.com/stm32duino/asm330lhh","last_synced_at":"2025-10-06T10:53:55.847Z","repository":{"id":54815006,"uuid":"251255796","full_name":"stm32duino/ASM330LHH","owner":"stm32duino","description":"Arduino library to support the ASM330LHH automotive 3D accelerometer and 3D gyroscope","archived":false,"fork":false,"pushed_at":"2022-08-23T08:37:38.000Z","size":40,"stargazers_count":2,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-02-26T16:01:13.426Z","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":"2020-03-30T09:14:21.000Z","updated_at":"2021-12-07T16:32:58.000Z","dependencies_parsed_at":"2022-08-14T03:40:32.748Z","dependency_job_id":null,"html_url":"https://github.com/stm32duino/ASM330LHH","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FASM330LHH","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FASM330LHH/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FASM330LHH/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FASM330LHH/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stm32duino","download_url":"https://codeload.github.com/stm32duino/ASM330LHH/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231987772,"owners_count":18456475,"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","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:51:04.500Z","updated_at":"2025-10-06T10:53:50.804Z","avatar_url":"https://github.com/stm32duino.png","language":"C","readme":"# ASM330LHH\nArduino library to support the ASM330LHH automotive 3D accelerometer and 3D gyroscope\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    ASM330LHHSensor AccGyr(\u0026dev_i2c);\n    AccGyr.begin();\n    AccGyr.Enable_X();  \n    AccGyr.Enable_G();\n\nAn instance can be created and enabled when the SPI bus is used following the procedure below:  \n\n    ASM330LHHSensor AccGyr(\u0026dev_spi, CS_PIN);\n    AccGyr.begin();\t\n    AccGyr.Enable_X();  \n    AccGyr.Enable_G();\n\nThe access to the sensor values is done as explained below:  \n\n  Read accelerometer and gyroscope.\n\n    int32_t accelerometer[3];\n    int32_t gyroscope[3];\n    AccGyr.Get_X_Axes(accelerometer);  \n    AccGyr.Get_G_Axes(gyroscope);\n\n## Documentation\n\nYou can find the source files at  \nhttps://github.com/stm32duino/ASM330LHH\n\nThe ASM330LHH datasheet is available at  \nhttps://www.st.com/content/st_com/en/products/mems-and-sensors/automotive-sensors/asm330lhh.html\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstm32duino%2Fasm330lhh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstm32duino%2Fasm330lhh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstm32duino%2Fasm330lhh/lists"}