Editing Arduino package
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
The {{Forge|arduino}} package is part of the [[Octave Forge]] project and provides an Octave look-alike implementation of the Arduino extension for Matlab. | The {{Forge|arduino}} package is part of the [[Octave Forge]] project and provides an Octave look-alike implementation of the Arduino extension for Matlab. | ||
= Installation = | = Installation = | ||
Line 24: | Line 10: | ||
== octave installation == | == octave installation == | ||
From octave | From octave commmand line: | ||
>> pkg install -forge arduino | >> pkg install -forge arduino | ||
Line 38: | Line 24: | ||
In order to use the arduino hardware with the toolkit, it must be programmed with special firmware. | In order to use the arduino hardware with the toolkit, it must be programmed with special firmware. | ||
From octave | From octave commmand line: | ||
>> arduinosetup | >> arduinosetup | ||
Line 54: | Line 40: | ||
>> arduinosetup('arduinobinary', '/path_to_the_installed_arduino/arduino') | >> arduinosetup('arduinobinary', '/path_to_the_installed_arduino/arduino') | ||
== Connecting to an Arduino == | == Connecting to an Arduino == | ||
Line 105: | Line 87: | ||
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: | ||
a = arduino; | |||
led_pin = "d13"; | led_pin = "d13"; | ||
while true | while true | ||
Line 113: | Line 95: | ||
pause (0.5) | pause (0.5) | ||
endwhile | endwhile | ||
= Documentation = | = Documentation = |