Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 17891

Re: combining ardino ide code with the linux cpp code and running it on linux

$
0
0

Hi annu_shah;

 

1. Do you want to run both at the same time?

2. Or do you want to indicate in the CPP-routine, when you run the Arduino-sketch?

 

For 1). You can run your code in background and at the same time be running the Arduino sketch.Take a look at this thread, you can use the nohup commands to do it.

 

For 2) if you want to run the CPP-routine by indicating it in the Arduino sketch, you could use system calls, something like:

system("gcc -o test.cpp out")

Or, if you want to add the Arduino-sketch in your CPP-routine, you will need to use something like mmi suggested in this other thread

By running

/sketch/sketch.elf /dev/ttyGS0 /dev/ttyGS0

With this you will run the last sketch that you have uploaded in your board.

 

 

I hope this answer your question.

-CMata


Viewing all articles
Browse latest Browse all 17891

Trending Articles