{"id":13802544,"url":"https://github.com/PinsonJonas/MPL3115A2_MicroPython","last_synced_at":"2025-05-13T13:31:43.316Z","repository":{"id":215170749,"uuid":"167202047","full_name":"PinsonJonas/MPL3115A2_MicroPython","owner":"PinsonJonas","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-28T21:56:16.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-22T12:36:27.851Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PinsonJonas.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}},"created_at":"2019-01-23T15:03:47.000Z","updated_at":"2023-11-29T13:43:48.000Z","dependencies_parsed_at":"2024-01-07T21:53:38.593Z","dependency_job_id":null,"html_url":"https://github.com/PinsonJonas/MPL3115A2_MicroPython","commit_stats":null,"previous_names":["pinsonjonas/mpl3115a2_micropython"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PinsonJonas%2FMPL3115A2_MicroPython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PinsonJonas%2FMPL3115A2_MicroPython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PinsonJonas%2FMPL3115A2_MicroPython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PinsonJonas%2FMPL3115A2_MicroPython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PinsonJonas","download_url":"https://codeload.github.com/PinsonJonas/MPL3115A2_MicroPython/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253950113,"owners_count":21989306,"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-08-04T00:01:46.820Z","updated_at":"2025-05-13T13:31:43.041Z","avatar_url":"https://github.com/PinsonJonas.png","language":"Python","readme":"# This is a MicroPython library for the MPL3115A2 Altimeter\n\n## How to use this library\n\nE.g. on the ESP32 pin 21 is SDA and pin 22 is SCL\n\nCreate a I2C object with the pins according to your design.\n\n   from machine import I2C\n   i2cbus = I2C(sda=Pin(21), scl=Pin(22))\n\nCreate the MPL object in altitude mode (mode 0)\n\n    from mpl3115a2 import MPL3115A2\n    mpl = MPL3115A2(i2cbus, mode=MPL3115A2.ALTITUDE)\n\nto read the altitude and temperature\n\n    altitude = mpl.altitude()\n    temperature = mpl.temperature()\n    \nCreate the MPL object in pressure mode (mode 1)\n\n    from mpl3115a2 import MPL3115A2\n    mpl = MPL3115A2(i2cbus, mode=MPL3115A2.PRESSURE)\n\nto read the pressure and temperature\n\n    pressure = mpl.pressure()\n    temperature = mpl.temperature()\n\n","funding_links":[],"categories":["Libraries"],"sub_categories":["Sensors"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPinsonJonas%2FMPL3115A2_MicroPython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPinsonJonas%2FMPL3115A2_MicroPython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPinsonJonas%2FMPL3115A2_MicroPython/lists"}