1,847
edits
m (Remove redundant Category:Packages.) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 40: | Line 40: | ||
>> arduinosetup('arduinobinary', '/path_to_the_installed_arduino/arduino') | >> arduinosetup('arduinobinary', '/path_to_the_installed_arduino/arduino') | ||
More specifically on MacOS: | |||
>> arduinosetup('arduinobinary', '/Applications/Arduino.app/Contents/MacOS/Arduino') | |||
== Connecting to an Arduino == | == Connecting to an Arduino == | ||
Line 87: | Line 91: | ||
The full code, with the LED controlled in a loop ti turn it on/off each second is in the following example: | The full code, with the LED controlled in a loop ti turn it on/off each second is in the following example: | ||
ar = arduino; | |||
led_pin = "d13"; | led_pin = "d13"; | ||
while true | while true | ||
Line 95: | Line 99: | ||
pause (0.5) | pause (0.5) | ||
endwhile | endwhile | ||
= Documentation = | = Documentation = | ||
Line 105: | Line 108: | ||
* The [https://octave.sourceforge.io/arduino/overview.html Function Reference] | * The [https://octave.sourceforge.io/arduino/overview.html Function Reference] | ||
[[Category:Octave Forge | [[Category:Octave Forge]] |