Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Examples

Valeri edited this page Aug 29, 2019 · 2 revisions

Examples

This page provides a brief description of each example included with this library.

Basic (no extra dependencies)

  • enumerate.lua -- simple demo that prints all connected WiiMotes twice and exits.

  • info.lua -- a little bigger example that reads static information about every WiiMote and prints it.

Basic (depend on lgi for polling functionality)

  • monitor.lua -- more complicated demo that first prints all connected WiiMotes and then keeps printing newly connected ones.

  • simple_read.lua -- this demo opens first found WiiRemote (and so do following ones) and then prints button presses on it and ProController (if one is connected).

  • set_led.lua -- take input as one 4-char long string of 0's and 1's and set WiiRemote LEDs accordingly. Please note that this one may require root/sudo rights.

  • test_rumble.lua -- use ENTER to turn rumble on/off.

GUI examples (depend on lgi for polling functionality and GTK+)