fix to led code run on ruby 1.8 and jruby 1.8; new version adjusted