-
Notifications
You must be signed in to change notification settings - Fork 12
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
Roadmap #1
Comments
I want to start working on the pixel font. How exactly will we store it ? Each character needs to be mapped to an 8x8 RGB565 Matrix. We'll easily get 100+ characters. What is the correct way to store data like this in a package ? Each mapping will look like |
I'd say we should store the images as FixedPointNumber arrays. And then store these images into a Dict. |
If there is no antialiasing, it might be easiest to store each character as a |
Right now if we have a 8x8 matrix of RGB which we want to display on the SenseHat led screen we must transpose it to view correctly. Why should a user be responsible for doing this every time ? Instead how about using |
Yeah, I agree it's not ideal. Unfortunately it's due to how the buffer is laid out in memory. But this is a problem for all images. We could have |
I don't understand what you mean by that. |
e.g. it would give what |
Yes, that makes sense. Or we could hide the implementation details altogether and simply provide two functions: |
I personally really, really like being able to just assign pixels and have it change immediately. |
|
One idea I was thinking of was to allow optional arguments to |
We can do that. |
No |
I should perhaps expand on that. If you are interested in reading from the IMU, then perhaps the easiest option is to wrap https://github.com/RPi-Distro/RTIMULib (which I think is what Python uses). Alternatively, you should be able to use the smbus interface, but this would require writing your own calibration and state tracker (RTIMULib uses a Kalman filter). |
Along with the |
You can flip by creating a view with a reverse range, e.g.
If I have my group theory right, I think all we need is flipping and permute dims, as we can get rotations from those: e.g. rotate 90 left would be:
|
It would be even better if we could use ImageAxes.jl somehow, as that has this sort of handling built in (though not this particular use case...) |
I only added orientation in PR #8. I didn't see any usefulness in flipping. Should I add it ? |
LED
Sensors
Kind of complex:
Should make use of Rotations.jl:
RodriguesVec
Base.^(::RodriguesVec, ::Real)
method to make it easy.The text was updated successfully, but these errors were encountered: