{"id":23744860,"url":"https://github.com/stm32duino/lis2duxs12","last_synced_at":"2025-06-10T10:33:13.172Z","repository":{"id":184451856,"uuid":"671913372","full_name":"stm32duino/LIS2DUXS12","owner":"stm32duino","description":"Arduino library to support the LIS2DUXS12 3D ultralow-power accelerometer with QVAR and AI","archived":false,"fork":false,"pushed_at":"2023-11-28T10:24:19.000Z","size":60,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-01T02:55:14.768Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","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":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-28T12:36:58.000Z","updated_at":"2025-04-26T13:13:20.000Z","dependencies_parsed_at":"2023-11-28T11:30:58.686Z","dependency_job_id":"b831bcdb-7d23-4dc8-be1d-b99e0c02ddfe","html_url":"https://github.com/stm32duino/LIS2DUXS12","commit_stats":null,"previous_names":["stm32duino/lis2duxs12"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLIS2DUXS12","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLIS2DUXS12/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLIS2DUXS12/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLIS2DUXS12/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stm32duino","download_url":"https://codeload.github.com/stm32duino/LIS2DUXS12/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLIS2DUXS12/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259056143,"owners_count":22798884,"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:50:12.743Z","updated_at":"2025-06-10T10:33:13.040Z","avatar_url":"https://github.com/stm32duino.png","language":"C","readme":"# LIS2DUXS12\nArduino library to support the LIS2DUXS12 3D accelerometer\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    LIS2DUXS12Sensor Accelero(\u0026dev_i2c);\n    Accelero.begin();\n    Accelero.Enable_X();\n\nAn instance can be created and enabled when the SPI bus is used following the procedure below:  \n\n    LIS2DUXS12Sensor Accelero(\u0026dev_spi, CS_PIN);  \n    Accelero.begin();\n    Accelero.Enable_X();\n\nThe access to the sensor values is done as explained below:  \n\n  Read accelerometer.  \n\n    int32_t accelerometer[3];\n    Accelero.Get_X_Axes(accelerometer);  \n\n## Examples\n\n* LIS2DUXS12_DataLog_Terminal: This application shows how to get data from LIS2DUXS12 accelerometer and print them on terminal.\n\n* LIS2DUXS12_6D_Orientation: This application shows how to use LIS2DUXS12 accelerometer to find out the 6D orientation and display data on a hyperterminal.\n\n* LIS2DUXS12_Double_Tap_Detection: This application shows how to detect the double tap event using the LIS2DUXS12 accelerometer.\n\n* LIS2DUXS12_FIFO_Polling: This application shows how to get accelerometer data from FIFO in pooling mode and print them on terminal.\n\n* LIS2DUXS12_FIFO_Interrupt: This application shows how to get accelerometer data from FIFO using interrupt and print them on terminal.\n\n* LIS2DUXS12_Free_Fall_Detection: This application shows how to detect the free fall event using the LIS2DUXS12 accelerometer.\n\n* LIS2DUXS12_MLC: This application shows how to detect the activity using the LIS2DUXS12 Machine Learning Core.\n\n* LIS2DUXS12_Pedometer: This application shows how to use LIS2DUXS12 accelerometer to count steps.\n\n* LIS2DUXS12_Qvar_Polling: This application shows how to use LIS2DUXS12 Qvar features in polling mode.\n\n* LIS2DUXS12_Single_Tap_Detection: This application shows how to detect the single tap event using the LIS2DUXS12 accelerometer.\n\n* LIS2DUXS12_Tilt_Detection: This application shows how to detect the tilt event using the LIS2DUXS12 accelerometer.\n\n* LIS2DUXS12_Triple_Tap_Detection: This application shows how to detect the triple tap event using the LIS2DUXS12 accelerometer.\n\n* LIS2DUXS12_Wake_Up_Detection: This application shows how to detect the wake-up event using the LIS2DUXS12 accelerometer.\n\n## Documentation\n\nYou can find the source files at  \nhttps://github.com/stm32duino/LIS2DUXS12\n\nThe LIS2DUXS12 datasheet is available at  \nhttps://www.st.com/content/st_com/en/products/mems-and-sensors/accelerometers/LIS2DUXS12.html\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstm32duino%2Flis2duxs12","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstm32duino%2Flis2duxs12","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstm32duino%2Flis2duxs12/lists"}