您的位置:首页 > 产品设计 > UI/UE

How do we make the Arduino code starts automatically after reboot

2014-02-19 14:43 429 查看
We got a pcDuino, and created an exciting Arduino style program on it. The code works as expected. Now we would like to see it automatically starts every time we reboot pcDuino. How can we do that?

Let’s use the included linker_led_test as an example.

We opened the example Linker_led_test, compile and execute:





Where is the executable located?

We can look for the executable by typing the following command under the very top directory ‘/’:





We can see from the above screen shot that the location is:

/tmp/build4983804596965501837.tmp/linker_led_test.cpp.o

We recommend to copy the executable to another location, and add the path to it in /etc/rc.local, by doing:

$sudo nano /etc/rc.local:

Please add the full path including the filename right above ‘exit 0′:



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  pcDuino Android