Giter Site home page Giter Site logo

thunder's Introduction

Thunder USB Missile Launcher (Dream Cheeky)

A pretty small jruby swing app to put a UI on the Dream Cheeky Thunder USB Missile Launcher (Since their drivers are windows only -- and 50MB+!)

UI

Requirements

  • JRuby
  • libusb

To run, clone the repo and run bundle install to get the dependencies.

GUI Usage

The UI also responds to the arrow keys for movement as well as the ENTER key to fire the missile.

jruby app.rb

Other Usage

require 'libusb'
require './lib/launcher'

begin
  l = Launcher.connect
  l.right 0.5   # move right 0.5 seconds
  l.up 0.2      # move up 0.2 seconds
  l.fire!(2)    # fire 2 missiles
rescue Launcher::DeviceNotFoundError
  puts "Your launcher could not be found."
  puts "Make sure your launcher is connected!"
  exit 1
end

Credits

The actual launcher code is in lib/launcher.rb and was a rewrite of the numberous other launcher apps out there. So all credit to those who originally found out the codes to send to the launcher to make it do its thing (Not sure who the original author is.)

Also another big thanks to profligacy LEL for making swing much less painful to type :)

thunder's People

Contributors

robhurring avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.