[Ruby] [ANN] BetaBrite LED sign library - 0.0.2
Daevid Vincent
daevid at daevid.com
Fri Sep 29 00:06:33 PDT 2006
That's awesome!
Where did you get your sign and how much was it? I've always wanted one of
those kinda signs -- I'm big into the LED thing.
> -----Original Message-----
> From: ruby-bounces at zenspider.com
> [mailto:ruby-bounces at zenspider.com] On Behalf Of Aaron Patterson
> Sent: Thursday, September 28, 2006 10:38 PM
> To: 'Seattle Ruby Brigade!'; ruby-talk at ruby-lang.org
> Subject: [Ruby] [ANN] BetaBrite LED sign library - 0.0.2
>
> The BetaBrite LED sign library version 0.0.2 is now available
>
> = Description
> This library is for controlling BetaBrite LED signs. You can
> write messages,
> picture files, control the color, font, etc. You can display
> special graphics
> and even change the display modes.
>
> = Release Notes
>
> == 0.0.2
>
> This release comes with new syntax for setting attributes of
> BetaBrite::String and BetaBrite::TextFile. Setting attributes
> like color
> and character set is now less cumbersome. For example, here is the old
> way to set the color using constants:
> s = BetaBrite::String.new("hello")
> s.color = BetaBrite::String::Color::GREEN
> Instead you can do this:
> s = BetaBrite::String.new("hello") { |a|
> a.set_color "green"
> }
> You can treat TextFile similarly:
> s = BetaBrite::TextFile.new { |a|
> a.set_mode "compressed_rotate"
> a.set_position "middle"
> }
> These special set functions figure out what constant you want
> and set it
> to the attribute you want. "set_mode" looks up the name
> passed in in the
> constants stored in the Mode class, and sets it to the mode attribute.
>
> --
> Aaron Patterson
> http://tenderlovemaking.com/
> _______________________________________________
> Ruby at zenspider.com
> http://www.zenspider.com/seattle.rb
> http://www.zenspider.com/mailman/listinfo/ruby
>
More information about the Ruby
mailing list