2
edits
m (→Simple example) |
|||
(One intermediate revision by the same 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 = |
edits