-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Conversation
thejpster
commented
Dec 27, 2024
Member
Author
I put the ioctls in the SDK crate. See Neotron-Compute/Neotron-SDK#17.
thejpster
force-pushed
the
add-graphics-device
branch
2 times, most recently
from
December 27, 2024 23:09
f701f70 to
d8b5c72
Compare
thejpster
commented
Dec 28, 2024
Member
Author
I cheated on the bitmap display utility, because I bake the raw bitmap into the binary and just send a pointer to it to the GFX: set_framebuffer ioctl. But, I don't have enough RAM to load the .bmp file and host a framebuffer, and the tinybmp crate doesn't support reading from a filesystem - the data has to be in RAM as a slice.
I might need to write a new bitmap parser that doesn't have that issue.
thejpster
force-pushed
the
add-graphics-device
branch
from
December 28, 2024 20:51
c6d7e89 to
ec2108f
Compare
thejpster
commented
Dec 28, 2024
Member
Author
Or, I need a mechanism to obtain a byte-slice for a thing that's in ROMFS.
Requires new neotron-sdk. Running an application now also caches and restores the current video mode (incase the app leaves it in a mess), which is done through the VGACONSOLE object so you can't write text to a framebuffer and ruin it.
Only supports a single colour.
Now it fits on one screen.
thejpster
force-pushed
the
add-graphics-device
branch
from
December 29, 2024 22:40
ec2108f to
f7ae07a
Compare
thejpster
commented
Dec 29, 2024
Member
Author
Rebased on develop. Updated the mode command to be less verbose now the Neotron Pico BIOS has a lot more video modes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Uh oh!
There was an error while loading. Please reload this page.
Supports drawing a single pixel, and clearing the whole screen.
TODO:
neotron_apicrate (or copy them into the neotron_sdk crate and just live with them being defined twice).ioctlAPI.