[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] BetaBrite LED sign library - 0.0.2

Aaron Patterson

9/29/2006 5:38:00 AM

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://tenderlovem...

2 Answers

Dr Nic

9/29/2006 6:50:00 AM

0

How much do the signs cost? Their website doesn't say much.

Nic

--
Posted via http://www.ruby-....

Aaron Patterson

9/29/2006 3:20:00 PM

0

On Fri, Sep 29, 2006 at 03:50:19PM +0900, Dr Nic wrote:
> How much do the signs cost? Their website doesn't say much.

I got it from Sam's club for $160.

http://www.samsclub.com/shopping/navigate.do?dest=5&i...

--Aaron

--
Aaron Patterson
http://tenderlovem...