{"id":13802444,"url":"https://gitlab.com/robhamerling/micropython-as7341","last_synced_at":"2025-05-13T13:31:19.947Z","repository":{"id":50389515,"uuid":"37935879","full_name":"robhamerling/micropython-as7341","owner":"robhamerling","description":"Library for AS7341","archived":false,"fork":false,"pushed_at":null,"size":null,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":null,"default_branch":"main","last_synced_at":"2024-08-05T00:07:18.446Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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":null,"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":"2022-07-19T11:37:02.748Z","updated_at":"2023-09-22T13:41:53.739Z","dependencies_parsed_at":"2022-09-21T08:53:01.242Z","dependency_job_id":null,"html_url":"https://gitlab.com/robhamerling/micropython-as7341","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/robhamerling%2Fmicropython-as7341","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/robhamerling%2Fmicropython-as7341/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/robhamerling%2Fmicropython-as7341/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/robhamerling%2Fmicropython-as7341/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners/robhamerling","download_url":"https://gitlab.com/robhamerling/micropython-as7341/-/archive/main/micropython-as7341-main.zip","host":{"name":"gitlab.com","url":"https://gitlab.com","kind":"gitlab","repositories_count":4515906,"owners_count":6543,"icon_url":"https://github.com/gitlab.png","version":null,"created_at":"2022-05-30T11:31:42.605Z","updated_at":"2024-07-18T11:24:13.055Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners"}},"keywords":[],"created_at":"2024-08-04T00:01:44.644Z","updated_at":"2024-11-18T17:31:26.722Z","avatar_url":null,"language":null,"funding_links":[],"categories":["Libraries"],"sub_categories":["Sensors"],"readme":"# micropython-as7341\n\nMicropython driver with:\n    Class for AS7341: 11 Channel Multi-Spectral Digital Sensor\n\nRob Hamerling, Version 0.3, June 2023\n\nOriginal by WaveShare for Raspberry Pi, part of:\n  https://www.waveshare.com/w/upload/b/b3/AS7341_Spectral_Color_Sensor_code.7z\n\nAdapted to Micropython, such as:\n  - Specification of active I2C interface is now required.\n  - Pythonized (in stead of straight forward conversion from C to Python).\n  - Many function names have been changed,\n    some functions removed, new functions added.\n  - Code optimized, esp. I2C communications.\n  - Code corrected, readability improved.\n  - Doc-strings and comments added.\n\n\n## Getting started\n\n  - Select a Micropython device with hardware I2C module, e.g. ESP32.\n  - Connect the AS7341 board via an I2C interface (hardware or software).\n    Depending on the choice of the I2C interface\n    the examples may require a minor modification.\n  - Copy as7341.py and as7341_smux_select.py\n    (or cross-compiled .mpy versions)\n    to the Micropython device.\n  - Do the same with the examples.\n  - Run one or more of the examples.\n    For the examples 'syns', 'pinint' and 'gpio_in_en' the GPIO pin\n    should be connected to +3.3V via a 10K resistor and via\n    a normally open push-button to GND.\n\n\nThis repository is **work in progress**.\nNot sure that all examples are working!\nMore/better documentation should follow, for now read the comments in the sources!\n\n\n## Examples\n\n  - as7341_all.py: read several ranges channels\n  - as7341_mid_log.py: read middle range channels, log the counts\n  - flicker.py: read flicker\n  - gpio_in_en.py: show use of GPIO pin for input\n  - interrupt.py: use of interrupt pin\n  - led_blink_pwm: show control of onboard LED\n  - pinint.py: use pin to trigger read-out\n  - syns.py: syns-mode, measurement starts with GPIO transition\n\n\n## Documentation\n\n  - AS7341_AN000666_1-01.pdf - Appplication Note: SMUX Configuration\n  - AS7341_DS000504_3-00.pdf - Datasheet: 11-Channel Multi-Spectral Digital Sensor\n\n\n## Summary of changes\n\n  - 0.1 Improved several 'get' members: return actual device settings\n  - 0.2 Removed superfluous instance variables (atime,astep,again)\n  - 0.3 Renamed hidden class variables and members:\n        single underscore prefix in stead of double underscore.\n\n\n.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Frobhamerling%2Fmicropython-as7341","html_url":"https://awesome.ecosyste.ms/projects/gitlab.com%2Frobhamerling%2Fmicropython-as7341","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Frobhamerling%2Fmicropython-as7341/lists"}