Allow writing data to psram directly #1112
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have a server that prepares a 800 * 480 byte image and the pico writes the bytes directly to the psram backed frame buffer as each packet comes in. This can be seen here: https://github.com/bozenalabs/rain_radar/blob/286b3949439b5dc78bca1af132a5cd2881aea3a7/firmware_c/rain_radar_app/data_fetching.cpp#L150
This PR adds support to do this. The alternatives are to either write each pixel one by one which takes far longer, or to create a jpeg image and then write the jpeg image to the buffer. It is far simpler to just write the image directly the frame buffer.