Page 1 of 1

AS7341 sensor

Posted: Sun Jul 10, 2022 9:38 am
by RobH
I'm looking for a Micropyton library for the AS7341 color sensor....
Rob.

Re: AS7341 sensor

Posted: Mon Jul 11, 2022 12:33 am
by jimmo
RobH wrote:
Sun Jul 10, 2022 9:38 am
I'm looking for a Micropyton library for the AS7341 color sensor....
I'm sure you've seen https://github.com/adafruit/Adafruit_Ci ... _as7341.py
It's not too difficult to re-write CPy drivers to MPy
(Or perhaps you could try using CircuitPython for your project if you just want to get it working quickly)

I have a couple of these that was planning for a project but didn't end up using so didn't get a chance to write a driver yet but ... well... if one got written that would be great :)

Re: AS7341 sensor

Posted: Mon Jul 11, 2022 7:56 am
by RobH
Thanks! Indeed I noticed the CPy library, as well as an RPy version (Waveshare).
I think I'll go for the RPi version: gives me the choice between using it asis with an RPi and convert to MPy (or both!).
Rob.

Re: AS7341 sensor

Posted: Wed Aug 10, 2022 7:25 pm
by RobH
For those of you interested: I have taken the AS7341 driver for the Raspberry Pi found in:
as base for a Micropython driver. It is still under construction, but available at:
Also some examples are available, but not all of 'm are working yet...