-
Notifications
You must be signed in to change notification settings - Fork 93
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
Pico and SPI #27
Comments
It looks good but it's best to specify the initial value of pins: pdc = machine.Pin(20, machine.Pin.OUT, value=0)
pcs = machine.Pin(17, machine.Pin.OUT, value=1)
prst = machine.Pin(21, machine.Pin.OUT, value=1) Are you using the right pins for SPI(0) (6 and 7)? What actually happens when you try to run one of the demos? |
Hey Peter, thanks for taking a look, greatly appreciated. The demo doesn't complain, so next step is to check whether I'm using the right pins. My two maxims for any issue with electronics: |
Working! in color_setup.py, I replaced
|
First of all, thanks a million for making such a comprehensive tool.
I am a total novice at things this low-level, so forgive the very basic question. I'm struggling to get up and running on a pico with a (128x128) ssd1351 screen. I am thinking that my configuration of the color_setup.py may be wrong.
This is a snippet from my color_setup.py that I think may be the issue:
`
height = 128 # 1.5 inch 128*128 display
pdc = machine.Pin(20, machine.Pin.OUT)
pcs = machine.Pin(17, machine.Pin.OUT)
prst = machine.Pin(21, machine.Pin.OUT)
spi = machine.SPI(0)
gc.collect() # Precaution before instantiating framebuf
ssd = SSD(spi, pcs, pdc, prst, height) # Create a display instance
`
Is there a glaring error in this?
The text was updated successfully, but these errors were encountered: