-
Notifications
You must be signed in to change notification settings - Fork 1
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
Defaults to slide 1 on battery #2
Comments
Interesting, I haven't come across any issues with read-only SD cards. If it were mini rather than micro SD I'd suggest checking the physical read-write switch! Have you tried with a different SD card? Pimoroni mentioned that it's fussy about some cards but the problematic one I had wouldn't mount. Another (too!) obvious issue would be file system full. The write rate for this type of program on a four hour update is very low so wearing out the Pico's flash isn't of great concern. |
Hi Kevin, Thanks for getting back to me. Yeah, I checked the SD card with Pimoroni’s SD checker program and it wrote and read just fine. Maybe I’ll have a tweak sometime, but suffice it to say that it’s now working fine, and I’m loathe to touch anything, have taken many hours to get to this point!
Thanks again for the great code - a real lifesaver.
… On 27 Mar 2023, at 7:23 pm, kevinjwalters ***@***.***> wrote:
Interesting, I haven't come across any issues with read-only SD cards. If it were mini rather than micro SD I'd suggest checking the physical read-write switch!
Have you tried with a different SD card? Pimoroni mentioned that it's fussy about some cards but the problematic one I had wouldn't mount. Another (too!) obvious issue would be file system full.
The write rate for this type of program on a four hour update is very low so wearing out the Pico's flash isn't of great concern.
—
Reply to this email directly, view it on GitHub <#2 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/A6XX7XN4V7STEASZHKC7LWLW6FFBJANCNFSM6AAAAAAWH2LEJU>.
You are receiving this because you authored the thread.
----------------------------------
David Fulcher (home email)
***@***.***
|
I found that the inky frame defaulted to slide 1 on battery power, and would not advance.
Line 190: SLIDE_CURFILE = SLIDE_DIR + "/slide.cur"
The .cur file did not seem to be being created.
Changing this line to SLIDE_CURFILE = "curr_slide_idx.txt" works, the file stored on the pico, not the sd card.
PS Thanks for this great code - the pimoroni code was continually throwing errors, and I was about the throw the inky frame in the bin, until we found your solution!
The text was updated successfully, but these errors were encountered: