No commit activity in last 3 years
No release in over 3 years
Uses a Wiimote to input morse code and publish the translated text to an SPS broker.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.2, >= 0.2.1
>= 0.4.0, ~> 0.4
 Project Readme

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:

  • libboost-dev
  • libcwiid-dev

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

  • minus button: dash
  • plus button: dot
  • trigger (button B): code separator
  • A (button A): Translate the morse code and publish to the SPS broker

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

Resources

morsecode wiimote gem wiimotemorsecode sps