-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Trinket M0: SPI not working correctly #219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Which channel is which? |
What version of CircuitPython are you using? |
Sorry, channel 0 is the clock, channel 1 is the data (channel 2 is the D/C). Running CircuitPython 1.0.0 that came flashed on the Teensy M0. |
I figured out where the "blips" are coming from — the BusDevice library is calling Commenting out that line from BusDevice makes the display work as expected. |
Weird! What settings do you have? Configure shouldn't do anything if the setting are the same as before. Relevant code is here: https://github.com/adafruit/circuitpython/blob/master/atmel-samd/common-hal/busio/SPI.c#L171 |
I didn't touch the default settings — the code I pasted in this bug is the only thing running since reset. I agree it's weird, especially since it only happens on the Trinket M0 — the Feather M0 Express is fine. |
Actually, I don't see you setting the |
This prevents the SERCOM from blipping the data line on each transaction and therefore fixes #219.
I'm trying to get a ST7735 display to work with Trinket M0, and it seems that Trinket's SPI behaves very strangely. Here is a screenshot of a capture of a fragment of the transmission:
and here is a close-up on one of the fragments:
Here's the complete capture for analysis:
cap.logicdata.zip
And here is the code that I used to capture that:
Looking at the capture, two things are immediately striking:
The text was updated successfully, but these errors were encountered: