View Source KeyboardLayout.LED (keyboard_layout v0.1.1)

Describes a physical LED location.

Link to this section Summary

Types

An atom used as a unique LED identifier

t()

An LED struct with an id, an x position, and a y position.

Functions

Returns a new (LED)(t:KeyboardLayou.LED.t/0).

Link to this section Types

@type id() :: atom()

An atom used as a unique LED identifier

@type t() :: %KeyboardLayout.LED{id: id(), x: number(), y: number()}

An LED struct with an id, an x position, and a y position.

Link to this section Functions

@spec new(id :: id(), x :: number(), y :: number()) :: t()

Returns a new (LED)(t:KeyboardLayou.LED.t/0).