Hi, I'm attempting to run the default example Ardino sketch "TLC59711-test" (https://learn.adafruit.com/tlc5947-tlc5 ... rogramming) on the M0 ItsyBitsy without connecting it to the TLC59711. The sketch uploads successfully, but then my laptop (running Windows 10) disconnects from the M0. This means I can't view the serial output of the sketch. I'm wondering if this is expected?
So far, I've found that commenting out the following lines of the sketch allows me to view the serial output:
tlc.begin();
tlc.write();
I believe this disables SPI communication with the LED driver.
Do I need to modify the Arduino sketch to use it on the M0 ItsyBitsy? Thank you for your help!
Using M0 trinket with TLC59711 12 LED Driver
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- deepSparse
- Posts: 4
- Joined: Sun Jan 14, 2018 5:41 pm
- dastels
- Posts: 15667
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Using M0 trinket with TLC59711 12 LED Driver
Have you tried using different pins? D13 is connected to the #13 LED which may be interfering.
Dave
Dave
- deepSparse
- Posts: 4
- Joined: Sun Jan 14, 2018 5:41 pm
Re: Using M0 trinket with TLC59711 12 LED Driver
Hi Dave,
Thank you for your reply! I tried setting the data and clock pins to D10 and D12 but I'm still seeing the same behavior. I'll try the circuitpython method with interfacing with the LED driver board and seeing if that works.
Thank you for your reply! I tried setting the data and clock pins to D10 and D12 but I'm still seeing the same behavior. I'll try the circuitpython method with interfacing with the LED driver board and seeing if that works.
- deepSparse2
- Posts: 2
- Joined: Sun Jan 02, 2022 11:15 am
Re: Using M0 trinket with TLC59711 12 LED Driver
Hi! I had to make a new account but I'm the original poster lol.
To follow up, I was not able to get the Arduino IDE to work with the ItsyBitsy + TLC59711, but I was able to get CircuitPython 7.1 to work after a bit of a hack. Please see my reply in this thread:
viewtopic.php?f=60&t=186817&p=905133#p905133
To follow up, I was not able to get the Arduino IDE to work with the ItsyBitsy + TLC59711, but I was able to get CircuitPython 7.1 to work after a bit of a hack. Please see my reply in this thread:
viewtopic.php?f=60&t=186817&p=905133#p905133
- dastels
- Posts: 15667
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Using M0 trinket with TLC59711 12 LED Driver
You're approach is a reasonable one. The M0 can handle small CircuitPython programs/libraries. Stripping down the libraries is one approach (compile them to MPY files if you can), C++ is another, but if you want to use CircuitPython consider moving to a large MCU. The ItsyBitsy M4 in this case. You'll have plenty of room then.
Dave
Dave
Please be positive and constructive with your questions and comments.