I want to compile the arduino file(.ino) using command line from windows platform. Please anybody tell the procedure for doing this.
Actually I have to automate the Arduino programming using Labview. I want to compile and create hex files from command line( I am using windows 7). so that once Hex files are created, I can upload that files into the board from labview.
When I enter this command in command line, arduino /"C:/Users/Wiot_Lab/Documents/labview/arduino/Blink/Blink.ino" , I am getting this message "arduino" is not recognized as an internal or external command, operable program or batch file.
Do I need to install any software before using this commands in command line? or will it support in windows?
PrakashSp:
Do I need to install any software before using this commands in command line? or will it support in windows?
You need to install the Arduino IDE, which you can download from: http://www.arduino.cc/en/Main/Software
Note that I mean the real Arduino IDE, not Arduino Web Editor.
Note that on Windows you should use the command arduino_debug instead of arduino.
when I use arduino_debug command, now also I am getting the same message "arduino_debug" is not recognized as an internal or external command, operable program or batch file.
FWIW I recently wrote a little wrapper, ardi, around arduino-cli that lets you compile, upload, and read logs from the serial port from command line with a bit more ease. It attempts to automatically detect your board and has an option to watch a sketch file and auto re-compile / re-upload on save. Feel free to use it if you find it helpful in anyway