TA的每日心情 | 郁闷 2013-6-3 09:22 |
---|
签到天数: 29 天 连续签到: 1 天 [LV.4]偶尔看看III
|
本帖最后由 pcduino 于 2013-5-31 09:46 编辑
We are developing Arduino style sample code for Ubuntu, and host the sample code in progress at gitub.
Firstly, we need to install git on pcDuino by the doing the following:- $ sudo apt-get install git
复制代码 Next we will fork the repo:- ubuntu@ubuntu:~$ pwd
- /home/ubuntu
- ubuntu@ubuntu:~$ mkdir myworkdirectory
- ubuntu@ubuntu:~$ cd myworkdirectory/
- ubuntu@ubuntu:~/myworkdirectory$ git clone https://github.com/pcduino/arduino
- Cloning into 'arduino'...
- remote: Counting objects: 123, done.
- remote: Compressing objects: 100% (100/100), done.
- remote: Total 123 (delta 17), reused 119 (delta 13)
- Receiving objects: 100% (123/123), 109.03 KiB, done.
- Resolving deltas: 100% (17/17), done.
- ubuntu@ubuntu:~/myworkdirectory$ ls
- arduino
复制代码 Next we show how to compile:- ubuntu@ubuntu:~/myworkdirectory$ cd arduino/
- ubuntu@ubuntu:~/myworkdirectory/arduino$ ls
- Makefile hardware libraries output sample
- ubuntu@ubuntu:~/myworkdirectory/arduino$ make
复制代码 To run the executable, please refer to:- buntu@ubuntu:~/myworkdirectory/arduino$ cd output
- ubuntu@ubuntu:~/myworkdirectory/arduino/output$ ls
- test
- ubuntu@ubuntu:~/myworkdirectory/arduino/output$ cd test
- ubuntu@ubuntu:~/myworkdirectory/arduino/output/test$ ls
- Motor_shield io_test pwm_test smg xbee_shield
- adc_test liquidcrystal_i2c relay_shield spi_test
- adxl345_test liquidcrystal_spi serial_test test
- drawCircle paint sim900 xbee_relay
- ubuntu@ubuntu:~/myworkdirectory/arduino/output/test$
复制代码 |
|