arduino
sudo apt-get update && sudo apt-get install arduino arduino-core
download arduino-ide
uppack and move to /opt
tail -2 /var/log/kern.log
sudo chmod a+rw /dev/ttyACM0
or
sudo chmod a+rw /dev/ttyUSB0
nodejs
exit program >>
From code you can use process.exit([errorcode]) where [errorcode] is an optional integer (0 is the default to indicate success).
If you're using the Read Eval Print Loop (REPL), you can use Ctrl + D, or type .exit
Alternatively, on Windows or Linux you can use Ctrl + C, Ctrl + C
On Mac the command is Ctrl + Z, Ctrl + Z
ov7670 with arduino uno and mega
Install arduino-ide
1. Download the latest packages, Linux 32-bit or Linux 64-bit, from the official link below:
www.arduino.cc/en/Main/Software
Don’t know your OS type? Go and check out System Settings -> Details -> Overview.
2. Open terminal from Unity Dash, App Launcher, or via Ctrl+Alt+T keys. When it opens, run below commands one by one:
Navigate to your downloads folder:
cd ~/Downloads
Decompress the downloaded archive with tar command:
tar -xvf arduino-1.6.6-*.tar.xz
Move the result folder to /opt/ directory for global use:
sudo mv arduino-1.6.6 /opt
3. Now the IDE is ready for use with bundled Java. But it would be good to create desktop icon/launcher for the application:
Navigate to install folder:
cd /opt/arduino-1.6.6/
Give executable permission to install.sh script in that folder:
chmod +x install.sh
Finally run the script to install both desktop shortcut and launcher icon:
./install.sh
In below picture I’ve combined 3 commands into one via “&&”:
Finally, launch Arduino IDE from Unity Dash, Application Launcher, or via Desktop shorcut.