Introducing the Wiimote_morsecode gem

Prerequisites

In order to use the Wiimote with the wiimote_morsecode gem you will first need to apt-get install the following:

Usage

require 'wiimote_morsecode'

wm = WiimoteMorseCode.new sps_address: 'sps'
wm.activate


Sample Output

wiimote/input: hello

To output the above message the plus button was pressed 4 times to represent an h. Then the trigger button was pressed, and then the plus button was pressed once to represent an e. Then the trigger button was pressed, and then the buttons plus, minus,plus, plus were pressed to represent an l. The previous action was repreat to represent another l. Then the trigger button was pressed, and the minus button was pressed 3 times to represent an o, followed by the pressing of button A to publish the message hello.

buttons

Note: Pressing the trigger (button B) twice represents a space character.

Resources