PaulStoffregen / Tlc5940

16 channel PWM LED driver based on the Texas Instruments TLC5940 chip.
https://github.com/PaulStoffregen/Tlc5940
78 stars 40 forks source link

Compatibility with Raspberry Pi Pico? #22

Open Jeff-Haas opened 1 year ago

Jeff-Haas commented 1 year ago

Description

When compiling the Basic Use sketch for the Raspberry Pi Pico using the Earl Philhower core earlephilhower, I get this error:

\Arduino\libraries\Tlc5940/pinouts/chip_includes.h:129:2: error: #error "Unknown Chip!" 129 | #error "Unknown Chip!"

Steps To Reproduce Problem

Please give detailed instructions needed for anyone to attempt to reproduce the problem.

Hardware & Software

Board : Raspberry Pi Pico Shields / modules used Arduino IDE version: IDE 2.0.4 Teensyduino version (if using Teensy) Version info & package name (from Tools > Boards > Board Manager) Operating system & version Any other software or hardware?

Arduino Sketch

BasicUse.ino

What is involved with updatings your pinouts to include the Pi Pico? And are you doing anything specific to AVR? I see you support Atmega and various Teensy chips.

PaulStoffregen commented 1 year ago

This porting work requires deep knowledge of the microcontroller's timer hawrdware and also good understanding of the TLC5940 chip. Maybe you can find someone on forums who would be willing to do this work and send a pull request.

Sorry, it is a complex topic and I do not have time write a long message. Ultimately the details are in the source code and TLC5940 datasheet. Anyone with the necessary experience to do this would could easily read both.

Jeff-Haas commented 1 year ago

Thanks for getting back to me quickly. It's good to know that you're still maintaining this library.

Looks like if I want to use the TLC5940 with the Pico I have to go to Micropython/Circuit Python.

PaulStoffregen commented 1 year ago

If either of those platforms supports TLC5940 on Pico, by all means use them.