# nano_kvm_go v0.4.0 - API Reference

## Modules

- [NanoKVMGo](NanoKVMGo.md): The hardware of the Sipeed NanoKVM-Go for Elixir, on its Nerves system.

- Video and audio
  - [NanoKVMGo.Audio](NanoKVMGo.Audio.md): The audio of the HDMI/DisplayPort input, or of the USB speaker.
  - [NanoKVMGo.EDID](NanoKVMGo.EDID.md): Decodes an EDID, such as the one `NanoKVMGo.Video.edid/1` returns: who made
the display it describes, its name and the modes it lists.
  - [NanoKVMGo.Microphone](NanoKVMGo.Microphone.md): The microphone the target computer sees, with the `:microphone` function
of the USB gadget (see `NanoKVMGo.USB`).
  - [NanoKVMGo.Video](NanoKVMGo.Video.md): Capture of the HDMI/DisplayPort input with the hardware encoders.

- LCD, touch panel, button
  - [NanoKVMGo.Backlight](NanoKVMGo.Backlight.md): The LCD's backlight: LEDs that PWM1 channel 2 dims, through the kernel's
`pwm-backlight` driver. Brightness follows lightness: 50 looks half as
bright as 100.
  - [NanoKVMGo.Button](NanoKVMGo.Button.md): The NanoKVM-Go's BOOT button, beside the USB port. Held at power-on it
starts the stock firmware's recovery; while the system runs it is free for
the application.
  - [NanoKVMGo.Display](NanoKVMGo.Display.md): The NanoKVM-Go's LCD: 240 × 284 pixels in portrait, through the Linux
framebuffer of its panel. The panel hides the last 14 rows: 240 × 270 of
them show. Its light is `NanoKVMGo.Backlight`.
  - [NanoKVMGo.Display.Canvas](NanoKVMGo.Display.Canvas.md): Pictures for `NanoKVMGo.Display`: filled rectangles and text, drawn in the
order given over a background, then rendered as RGB565.
  - [NanoKVMGo.Touch](NanoKVMGo.Touch.md): The touch panel over the NanoKVM-Go's LCD.

- Bluetooth
  - [NanoKVMGo.Bluetooth](NanoKVMGo.Bluetooth.md): Bluetooth through BlueZ: the controller in the board's AIC8800 Wi-Fi
chip, its pairings and the devices it knows.
  - [NanoKVMGo.Bluetooth.HID](NanoKVMGo.Bluetooth.HID.md): The board as a Bluetooth LE HID device (HID over GATT): a keyboard, a
mouse, a game controller, whatever its report descriptor says.

- The device
  - [NanoKVMGo.CMA](NanoKVMGo.CMA.md): The contiguous memory (CMA) pools of video and the NPU.
  - [NanoKVMGo.Expansion](NanoKVMGo.Expansion.md): The two lines of the auxiliary USB-C port, the one with the lightning
icon. They are the SoC's UART3 pads, which the NanoKVM-Go system's kernel
makes a UART, GPIOs, PWM outputs or an I2C bus; Sipeed's Finger Robot is
a servo on them. Both are inputs pulled down until a mode is set
  - [NanoKVMGo.Hardware](NanoKVMGo.Hardware.md): The NanoKVM-Go as Linux sees it: the board, its SoC, memory and microSD
card, and the parts on the board with the drivers that run them.
  - [NanoKVMGo.Metrics](NanoKVMGo.Metrics.md): What the NanoKVM-Go is doing, sampled each second: the share of the CPU in
use, the memory in use, the SoC temperature, the traffic of each network
interface, the load average and the time since it started. The process
keeps the last five minutes for graphs, and sends each sample to its
subscribers.
  - [NanoKVMGo.USB](NanoKVMGo.USB.md): The NanoKVM-Go's USB gadget, as its Nerves system sets it up at boot.

