This morning I attended a Pre-competition presentation on arduino. The organizer sent a set of arduinoUNO kits and a book on arduino development to each group. I flipped through the book and said that arduino is an open-source project (all open-source projects in this year), using an Arduino development language similar to C. The advantage of using this language is that you don't need to pay attention to the underlying implementation. That is to say, people have encapsulated various libraries for you. All you have to do is focus on your creativity (I think it's just a toy ). Okay,
This morning I attended a Pre-competition presentation on arduino. The organizer sent a set of arduino UNO kits and a book on arduino development to each group. I flipped through the book and said that arduino is an open-source project (all open-source projects in this year), using an Arduino development language similar to C. The advantage of using this language is that you don't need to pay attention to the underlying implementation. That is to say, people have encapsulated various libraries for you. All you have to do is focus on your creativity (I think it's just a toy ).
Okay, although not interested in this. However, people are very sincere when they are responsible for the organizers and collaborators, especially when the organizers give an arduino development kit.
Therefore, I will first write an article about installing arduino IDE in Ubuntu and implementing arduino development in Emacs.
Table of Contents
1. Environment configuration before installation
2. Install arduino
3. Uninstall the driver
4. Install the arduino plug-in Emacs
4.1 download arduino-mode.el
4.2 Installation
4.3 Use
4.4 note
1. Environment configuration before installation
The following two commands are the basic configurations of the arduino installation environment:
Sudo apt-get install gcc-avr-libc
Sudo apt-get install openjdk-7-jre
2. Install arduino
This command directly installs arduino.
Sudo apt-get install arduino
3. Uninstall the driver
The ubuntu driver will make the arduino board unavailable, so you must uninstall the driver. If you use the following command to display devices such as ttyACM0 in/dev, you need to uninstall the ubuntu driver.
~ $ Ls/dev/ttyACM *
/Dev/ttyACM0
The following command uninstalls the brltty driver directly.
Sudo apt-get remove brltty
A line appears, indicating that the uninstallation can be completed only after the restart.
Ureadahead will be reprofiled on next reboot
4. Install the arduino plug-in Emacs
4.1 download arduino-mode.el
With this plug-in on github, download directly at this URL: https://github.com/bookest/arduino-mode
4.2 Installation
Put the arduino-mode.el IN ~ /. Emacs. d/, and ~ /. Add under emacs
(Require 'arduino-mode)
4.3 Use
Enter M-x arduino-mode for direct use.
4.4 note
In fact, you should go to the Emacs Wiki for more details.