View Source Framebuffer (framebuffer v0.0.2)
Abstraction over Linux framebuffer devices.
Linux headers
Linux documentation
Link to this section Summary
Functions
Given an open framebuffer, refresh its fixed and variable device information.
Opens a framebuffer device and returns an :ok
tuple with a Framebuffer.t/0
including fixed and variable device information and a reference to an open
file descriptor. This file descriptor is kept open for the lifetime of the
reference.
Optimistic version of open/1
. Raises on any error.
Link to this section Types
Specs
color() :: {non_neg_integer(), non_neg_integer(), non_neg_integer()}
Color: {red, green, blue}
Specs
device_t() :: Path.t()
Specs
Specs
t() :: %Framebuffer{ fix_screeninfo: Framebuffer.Screeninfo.Fix.t(), ref: reference(), var_screeninfo: Framebuffer.Screeninfo.Var.t() }
Specs
x() :: non_neg_integer()
Specs
y() :: non_neg_integer()
Link to this section Functions
Specs
Specs
Given an open framebuffer, refresh its fixed and variable device information.
Arguments
parameter | required | default |
---|---|---|
framebuffer | true |
Specs
Specs
Opens a framebuffer device and returns an :ok
tuple with a Framebuffer.t/0
including fixed and variable device information and a reference to an open
file descriptor. This file descriptor is kept open for the lifetime of the
reference.
Arguments
parameter | required | default |
---|---|---|
device | false | /dev/fb0 |
Specs
Optimistic version of open/1
. Raises on any error.