Install Arduino in Ubuntu and use Emacs for development

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.