Skip to content

Ruby driver for the Delcom USB HID Visual Signal Indicator RGY (904008, generation II)

Notifications You must be signed in to change notification settings

DiUS/delcom_usbvsi_driver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Ruby driver for the Delcom USB HID Visual Signal Indicator RGY (904008, generation II)

Provides a simple interface to turn on/off the red, green and yellow LEDs.

It should be pretty trivial to adapt this driver to work with any generation II signal indicator, however I only have access to the RGY version.

Requirements

Example usage

require 'timeout'
require 'delcom_904008'

light = Delcom::SignalIndicator.new

begin
  Timeout::timeout(5) do
    loop do
      light.red
      sleep 0.1
      light.off
      sleep 0.05
    end
  end
rescue Timeout::Error
  light.off
end

light.close

About

Ruby driver for the Delcom USB HID Visual Signal Indicator RGY (904008, generation II)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published