MAX7313 library available?

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
nickehallgren
Posts: 4
Joined: Thu Nov 07, 2019 7:18 am

MAX7313 library available?

Post by nickehallgren » Mon May 30, 2022 8:11 am

Hi, I tried to google but didn't find what I'm looking for so I thought I try here too. Is there a library for the MAX7313?

I'm working on a project that will have 10 buttons (with RGB leds using PWM) and I would like to use I2C for everything. The program will run on a W5100S-EVB-Pico as I also need ethernet.

I can do it with the Arduino IDE but it would have been nice to switch this project to MicroPython. I might try to convert the Arduino library if none is found but I'm not sure I will be successful...

Best regards
Nicke

rkompass
Posts: 66
Joined: Fri Sep 17, 2021 8:25 pm

Re: MAX7313 library available?

Post by rkompass » Wed Jun 01, 2022 8:45 am

I think you should do so.

https://github.com/eta-systems/MAX7313- ... ax7313.cpp seems to be a good start.
It is not too long and the conversion to micropython should not be too hard.

Once the code for other port expanders e.g. at the curated "awesome micropython" list https://github.com/mcauser/awesome-micropython#io, e.g. for pcf8574: https://github.com/mcauser/micropython- ... pcf8575.py, is understood, transformation for the MAX7313 should not take too long.

Don't hesitate to present your questions and problems arising in this process.

Best regards,

Raul

Post Reply