Skip to content
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

Open
corplayer opened this issue Mar 26, 2023 · 2 comments
Open

Defaults to slide 1 on battery #2

corplayer opened this issue Mar 26, 2023 · 2 comments

Comments

@corplayer
Copy link

corplayer commented Mar 26, 2023

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!

@kevinjwalters
Copy link
Owner

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.

@corplayer
Copy link
Author

corplayer commented Mar 27, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants