Commit Graph

6 Commits

Author SHA1 Message Date
Wladimir J. van der Laan
4f2c51e00d rust: Unswizzle framebuffer for ST7789V display
By swapping the endian in RAMCTRL as well as in the SPI driver,
the frame format can be coerced into the "normal" order of pixels in
little endian, `0xBBBBAAAA` instead of `0xAAAABBBB`. This allows
seamless casting from an array of `u16`.

Accessing as 32-bit units might still be desirable for performance, but
it is a lesser worry now.

Note that a 32-bit alignment constraint still does hold for DMA.
2020-11-06 07:26:24 +00:00
Wladimir J. van der Laan
67078f6242 rust: Fixes for newer dependencies 2020-06-02 21:07:54 +00:00
Wladimir J. van der Laan
a2d4fc3445 rust: Use aligned_as macro in voxel
Use updated macro by ExpHP from
https://users.rust-lang.org/t/can-i-conveniently-compile-bytes-into-a-rust-program-with-a-specific-alignment/24049/2
2020-03-06 21:12:57 +00:00
Wladimir J. van der Laan
ff78df047d voxel: Use accelerometer to steer 2020-01-12 17:36:28 +00:00
Wladimir J. van der Laan
7e0b0f05b0 voxel: Add smoothing for height 2020-01-12 13:12:20 +00:00
Wladimir J. van der Laan
e85a074309 rust: Add voxel rendering demo 2020-01-12 11:55:53 +00:00