API Reference nano_kvm_go v#0.4.0

Copy Markdown View Source

Modules

The hardware of the Sipeed NanoKVM-Go for Elixir, on its Nerves system.

The audio of the HDMI/DisplayPort input, or of the USB speaker.

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.

Bluetooth through BlueZ: the controller in the board's AIC8800 Wi-Fi chip, its pairings and the devices it knows.

The board as a Bluetooth LE HID device (HID over GATT): a keyboard, a mouse, a game controller, whatever its report descriptor says.

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.

The contiguous memory (CMA) pools of video and the NPU.

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.

Pictures for NanoKVMGo.Display: filled rectangles and text, drawn in the order given over a background, then rendered as RGB565.

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.

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

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.

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.

The microphone the target computer sees, with the :microphone function of the USB gadget (see NanoKVMGo.USB).

The touch panel over the NanoKVM-Go's LCD.

The NanoKVM-Go's USB gadget, as its Nerves system sets it up at boot.

Capture of the HDMI/DisplayPort input with the hardware encoders.