No description, website, or topics provided.
C Ruby
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples Gracefully handle button cover already being open Jun 24, 2016
ext/dream_cheeky
lib
spec
.gitignore
Gemfile
README.md
Rakefile
dream_cheeky.gemspec

README.md

Dream Cheeky

Make your Dream Cheeky USB Device do something cool.

World, the time has come to PUSH THE BUTTON!

Support

The following Dream Cheeky USB Devices are supported (vendor_id:product_id)

Big Red Button (1d34:000d)
USB Fidget (1d34:0001)

Please get in touch if you have an unsupported Dream Cheeky device.

Usage

Simple:

require 'rubygems'
require 'dream_cheeky'

DreamCheeky::UsbFidget.run do
  push do
    `say "BEEP!"`
  end
end

Advanced:

require 'rubygems'
require 'dream_cheeky'
require 'watir-webdriver'

DreamCheeky::BigRedButton.run do
  browser = Watir::Browser.new

  open do
    browser.goto 'devastatingexplosions.com'
  end

  close do
    browser.close
  end

  push do
    browser.object(:id => 'flashcontent').click
  end
end

Requirements

  1. A supported Dream Cheeky USB Device. Example: http://dreamcheeky.com/big-red-button

  2. Mac OS X with Developer Tools installed or Linux with libusb and udev installed.

  3. On Linux you may have to add a udev rule. To do that, create a file named 99-dream_cheeky.rules with the following content:

     SUBSYSTEM=="usb", ATTRS{idVendor}=="1d34", ATTRS{idProduct}=="000d", MODE="0666", GROUP="plugdev"
    

    Then, copy the file to /etc/udev/rules.d/99-dream_cheeky.rules (you probably would need root priviles to copy it).

Maintainers

Contributors