Expand description
Ajazz library
Library for interacting with Ajazz devices through hidapi.
Re-exports§
pub use asynchronous::AsyncAjazz;
async
Modules§
- asynchronous
async
- Async Ajazz Code from this module is using block_in_place, and so they cannot be used in current_thread runtimes
Structs§
- Ajazz
- Interface for an Ajazz device
- Device
State Reader - Button reader that keeps state of the Ajazz and returns events instead of full states
- Image
Format - Image format used by the device
- Image
Rect - Rect to be used when trying to send image to lcd screen
Enums§
- Ajazz
Error - Errors that can occur while working with Ajazz devices
- Ajazz
Input - Type of input that the device produced
- Event
- Tells what changed in button states
- Image
Mirroring - Image mirroring
- Image
Mode - Image format
- Image
Rotation - Image rotation
- Kind
- Enum describing kinds of Ajazz devices
Functions§
- convert_
image - Converts image into image data depending on provided kind of device
- convert_
image_ async async
- Converts image into image data depending on provided kind of device, can be safely ran inside multi_thread runtime
- convert_
image_ with_ format - Converts image into image data depending on provided image format
- convert_
image_ with_ format_ async async
- Converts image into image data depending on provided image format, can be safely ran inside multi_thread runtime
- list_
devices - Returns a list of devices as (Kind, Serial Number) that could be found using HidApi.
- new_
hidapi - Creates an instance of the HidApi
- refresh_
device_ list - Actually refreshes the device list