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

Fix flash writes with Presto display active. #10

Merged

Conversation

MichaelBell
Copy link
Collaborator

We were trying to execute code from flash on core1 while flash writes were happening. I think (hope!) this is the cause of all the weird instability, I've tried initializing wifi and the display in different orders and that does seem to be working.

// There can only be one presto display, so have a global pointer
// so that core1 can access it. Note it also needs to be in the
// Micropython object to prevent GC freeing it.
static ST7701 *presto;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is slightly sad but seemed the simplest approach.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we still have some of this pattern knocking about, if it works it works!

@Gadgetoid Gadgetoid merged commit e1c7c71 into pimoroni:feature/full-resolution Nov 28, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants