Is it possible to use something like:
require 'serialport.o'
with Shoes? serialport.o is compiled c code as a ruby extension.
When I attempt to run the following code in shoes, I see no visible output to the screen and shoes crashes on OS X.
Thank you
CODE:
require "serialport.o"
port = "/dev/tty.usbserial-A1001O0o"
sp = SerialPort.new( port, 9600, 8, 1, SerialPort::NONE)
Shoes.app :width => 300, :height => 150, :margin => 10 do
button "On" do
sp.write( "1" )
end
end
sp.close