arduino
arduino copied to clipboard
Blocks on setting output (or doing anything but Arduino.new())
Windows 10 x64 (x32 ruby) Arduino Uno
When loading the example script, the program blocks when trying to execute board.output(13)
(Because I'm on Windows, I had to change the connecting to board = Arduino.new("COM1")
)
Also when just trying to read pins (not output to them) board.getState(12)
and board.analogRead(12)
seem to block as well.
Tried to discover the cause, but I hadn't a clue what was going on (relatively new to Ruby myself)
Code used is purely the example code provided on the github page. (save for editing the port to "COM1")