Hey guys, i was recently playing around with Arduino / Microcontrollers and wrote a little script to make a hardware itunes volume control out of a potentiometer. Now would love to do that with macruby instead of this disgrace: http://github.com/hukl/Arduino-Experiments/blob/master/itunes_volume_control... but unfortunately serialport won't work because auf the native extensions that don't work and IO which seems to be a bit buggy. Do you guys have any idea how to make macruby talk to the serial port or do i have to be a bit more patient ? ;) Kind regards, John
On Feb 4, 2010, at 8:03 AM, John-Paul Bader wrote:
Do you guys have any idea how to make macruby talk to the serial port or do i have to be a bit more patient ? ;)
One assumes you still have no problem talking to the serial port from ObjectiveC, therefore the best approach would be to create a small ObjC class which encapsulates your serial communications and then simply use that class from your MacRuby application. - Jordan
Hi Jordan: Paolo Bosettti put an ObjC class on github several months ago that works well. Bob Rice On Feb 4, 2010, at 1:03 PM, Jordan K. Hubbard wrote:
On Feb 4, 2010, at 8:03 AM, John-Paul Bader wrote:
Do you guys have any idea how to make macruby talk to the serial port or do i have to be a bit more patient ? ;)
One assumes you still have no problem talking to the serial port from ObjectiveC, therefore the best approach would be to create a small ObjC class which encapsulates your serial communications and then simply use that class from your MacRuby application.
- Jordan
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Paolo's repo: http://github.com/pbosetti/PBSerialPort (I did not try the code myself) - Matt On Thu, Feb 4, 2010 at 11:09 AM, Robert Rice <rice.audio@pobox.com> wrote:
Hi Jordan:
Paolo Bosettti put an ObjC class on github several months ago that works well.
Bob Rice
On Feb 4, 2010, at 1:03 PM, Jordan K. Hubbard wrote:
On Feb 4, 2010, at 8:03 AM, John-Paul Bader wrote:
Do you guys have any idea how to make macruby talk to the serial port or
do i have to be a bit more patient ? ;)
One assumes you still have no problem talking to the serial port from
ObjectiveC, therefore the best approach would be to create a small ObjC class which encapsulates your serial communications and then simply use that class from your MacRuby application.
- Jordan
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hi, On Feb 4, 2010, at 8:03 AM, John-Paul Bader wrote:
i was recently playing around with Arduino / Microcontrollers and wrote a little script to make a hardware itunes volume control out of a potentiometer. Now would love to do that with macruby instead of this disgrace: http://github.com/hukl/Arduino-Experiments/blob/master/itunes_volume_control... but unfortunately serialport won't work because auf the native extensions that don't work and IO which seems to be a bit buggy.
Do you guys have any idea how to make macruby talk to the serial port or do i have to be a bit more patient ? ;)
We intend to support C extensions written for MRI in the next release. But if you don't want to wait, you can try the Objective-C wrapper as mentioned in this thread. Laurent
participants (5)
-
John-Paul Bader
-
Jordan K. Hubbard
-
Laurent Sansonetti
-
Matt Aimonetti
-
Robert Rice