Expand description

Backends for a framebuffer.

One could use a simple array of [PixelColor], or some more elaborate proxy backends.

Example:

use embedded_graphics::{pixelcolor::Rgb565, prelude::RgbColor};
use embedded_graphics_framebuf::{
    backends::{EndianCorrectedBuffer, EndianCorrection},
    FrameBuf,
};
let mut data = [Rgb565::BLACK; 12 * 11]; // A potential backend
let mut fbuf = FrameBuf::new(&mut data, 12, 11);

let mut fbuf = FrameBuf::new(
    EndianCorrectedBuffer::new(&mut data, EndianCorrection::ToBigEndian),
    12,
    11,
);

Structs

A backend for FrameBuf which changes the underlying byte order. This can be useful when using the buffer for DMA with peripherals that have a different endianness than the host.

Enums

Enum indicating how the bytes should be converted in the host’s memory.

Traits

Backends implementing this Trait can be used for DMA.

This trait marks the requirements for backends for a FrameBuf.