arduino linux版本安装使用
来源:互联网 发布:优酷会员淘宝登录不了 编辑:程序博客网 时间:2024/05/29 14:00
较新的版本是1.0.5。但为了研究之前的开源代码,pde格式项目文件,只能从0023版本开始搞。
安装过程见:http://playground.arduino.cc/Linux/Ubuntu
sudo apt-get install gcc-avr avr-libc
或参考:http://www.pluggy.me.uk/arduino-ubuntu/
然后下载需要的版本包,解压后直接运行 ./arduion即可打开ide。
遇到的问题:
1. arduino0023 for ubuntu版本里,tutorials工程就有编译错误。
现象及解决办法:
参考:https://groups.google.com/forum/#!topic/linux.debian.bugs.dist/9E6wE0b5wiw
In file included from /usr/lib/gcc/avr/4.5.3/../../.
from /usr/lib/gcc/avr/4.5.3/../../.
from /usr/share/arduino/hardware/
from /usr/share/arduino/hardware/
/usr/lib/gcc/avr/4.5.3/../../.
/usr/lib/gcc/avr/4.5.3/../../.
which is caused by the macro definition of round() in wiring.h:
#define round(x) ((x)>=0?(long)((x)+0.5):(long)
commenting out this line fixes this final compliation error and the program compiles, uploads and correctly works on the Arduino that I have.
2. arduino0023及1.0.5版本,编译成功后无法选择对应的ttyACM0端口。因为Serial菜单是灰色的。
解决办法: sudo ./arduino
此问题与putty中经常遇到的无法打开串口问题是类似的。解决办法是sudo putty即可。
如果/dev/ttyUSB0或/dev/ttyACM0仍然无打开权限。有一个办法就是chmod 777 /dev/ttyUSB0 这样就好了。
- arduino linux版本安装使用
- 使用arduino安装esp8266环境
- Arduino可穿戴教程Linux平台下安装Arduino IDE
- ROS与Arduino-Arduino IDE 安装和使用
- 【Linux软件安装】Ubuntu 12.04:Arduino IDE
- Ubuntu安装Arduino及使用Emacs开发
- 常见arduino版本比较
- arduino安装ESP8266 Arduino core
- 【Arduino】【ESP】使用Arduino(ESP8266版本)获取雅虎天气信息,并使用点阵显示......进行中
- realplayer linux版本安装
- 安装Linux Minimal版本
- Notes 8 for Linux 本地化版本的安装和使用
- linux使用yum更新或安装最新版本的mysql
- 使用Anaconda在Linux下安装TensorFlow的CPU版本
- Linux上使用yum安装MySQL(默认版本)
- Ubuntu安装Arduino及使用Emacs开发环境设置
- ROS学习(十七)安装ARDUINO IDE使用rosserial
- Arduino教程(入门篇)——各版本驱动安装方法
- servlet中使用HttpServletResponseWrapper截获返回的页面内容
- ssh
- linux下查看进程内存使用情况
- 关于Web前端及百度web前端笔试面试题目
- 二叉树的实现(C++版)
- arduino linux版本安装使用
- magento 多表相同列名join
- oracle时间函数
- Hive 常用命令
- 黑马程序员--Java学习06--数组
- 超级强大的web前端编辑器 cmd markdown
- iOS手势操作
- c++关键字之 const
- 百度电话二面回忆 web开发部–web开发工程师