{"id":23744883,"url":"https://github.com/stm32duino/lps22hb","last_synced_at":"2025-10-14T23:58:02.449Z","repository":{"id":54832851,"uuid":"97945058","full_name":"stm32duino/LPS22HB","owner":"stm32duino","description":"Arduino library to support the LPS22HB 260-1260 hPa absolute digital ouput barometer","archived":false,"fork":false,"pushed_at":"2021-10-05T13:49:19.000Z","size":39,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"main","last_synced_at":"2023-06-14T19:57:27.951Z","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:23:50.000Z","updated_at":"2022-06-20T06:54:59.000Z","dependencies_parsed_at":"2022-08-14T04:10:47.959Z","dependency_job_id":null,"html_url":"https://github.com/stm32duino/LPS22HB","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%2FLPS22HB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLPS22HB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLPS22HB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stm32duino%2FLPS22HB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stm32duino","download_url":"https://codeload.github.com/stm32duino/LPS22HB/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:50:35.964Z","updated_at":"2025-10-14T23:58:02.358Z","avatar_url":"https://github.com/stm32duino.png","language":"C","readme":"# LPS22HB\nArduino library to support the LPS22HB 260-1260 hPa absolute digital output barometer\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(I2C2_SDA, I2C2_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    LPS22HBSensor PressTemp(\u0026dev_i2c);\n    PressTemp.begin();\n    PressTemp.Enable();\n\nAn instance can be created and enabled when the SPI bus is used following the procedure below:  \n\n    LPS22HBSensor PressTemp(\u0026dev_spi, CS_PIN);\n    PressTemp.begin();\n    PressTemp.Enable();\n\nThe access to the sensor values is done as explained below:  \n\n  Read pressure and temperature.  \n\n    float pressure;\n    float temperature;\n    PressTemp.GetPressure(\u0026pressure);  \n    PressTemp.GetTemperature(\u0026temperature);\n\n## Documentation\n\nYou can find the source files at  \nhttps://github.com/stm32duino/LPS22HB\n\nThe LPS22HB datasheet is available at  \nhttp://www.st.com/content/st_com/en/products/mems-and-sensors/pressure-sensors/lps22hb.html\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstm32duino%2Flps22hb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstm32duino%2Flps22hb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstm32duino%2Flps22hb/lists"}