-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Usage Example from Adafruit_CircuitPython_EPD States Output: "ValueError: SCK in use" #6249
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
please try very latest version of cpy, in case something got fixed recently |
This is normal if it happens on reload. The SPI is retained by displayio when you setup a display, so that it can be used to show the REPL when the code ends or reloads. You need to execute this before initing the SPI line. displayio.release_displays() See example here: (A better place for support issues is the forums or discord server). |
@Neradoc i dont think this is the displayio driver, its the framebuf one |
Ah my bad I misread that. Very sorry. |
@ladyada Thanks for your reply, I have updated to the most recent CircuitPython, Adafruit CircuitPython 7.2.4. Now the code runs, but there is no output on the e paper screen. I just ran the program. Here is the exact output on the serial terminal: "Auto-reload is on. Simply save files over USB to run them or enter REPL to disable. Code done running. Press any key to enter the REPL. Use CTRL-D to reload." I can display images on this device, so I am sure that it is functional. |
ok @makermelissa can try to replicate |
I'm getting some output when I use the correct pins( see https://learn.adafruit.com/adafruit-2-9-eink-display-breakouts-and-featherwings/pinouts) with this script:
However, I don't think we ever updated the library to work with the grayscale display because it was a FeatherWing and we were really only using this library for the Raspberry Pi. |
Oof, I don't know why I thought you were using grayscale. Let me try with a tri-color... |
Ok, tri-color is sorta working. I'll try messing with it a bit and get back to you. |
Ok, the width and height were reversed in your example too. Try this:
|
Here's a version that draws it all at once and I put back in the board.SCK:
|
I used CircuitPython 7.2.5 and the original issue appears to be fixed. |
You thought right, I was using greyscale! Wasn't sure how to adapt the code to my device. |
Thanks so much for your help, works great now! |
CircuitPython version
Code/REPL
Behavior
Below is a copy of the cody.py output:
code.py output:
Traceback (most recent call last):
File "code.py", line 8, in
ValueError: SCK in use
Code done running.
Press any key to enter the REPL. Use CTRL-D to reload.
I have read and understood "SCK in use error on feather m4 express #1088" and "nrf: implement checking for pin in use #1089", which are referenced below. As far as I know, only 1 spi pin is in use.
I apologize if this isn't the correct avenue for discussion. I understand if I am redirected to a more suitable channel.
#1088
#1089
Description
No response
Additional information
Hardware:
Adafruit Feather M4 Express with samd51j19
Board ID: feather_m4_express
2.9" ThinkInk Greyscale EPD Display
The text was updated successfully, but these errors were encountered: