• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinoQuick StartHow do we make the Arduino code starts automatical ...
Previous Next

How do we make the Arduino code starts automatically after reboot?

Posted by: admin , January 7, 2014

[vc_row][vc_column width=”1/1″][vc_column_text]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:

linker_led_test

Where is the executable located?

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

location

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’:

rclocal

[/vc_column_text][/vc_column][/vc_row]

Tags: Quick Start

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors