• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinoArduino-ish ProgrampcDuino gets Arduino style API
Previous Next

pcDuino gets Arduino style API

Posted by: Alvin Jin , March 28, 2014

Install git:

$ sudo apt-get install git

If  can’t install successfully , carry out the following steps

$ sudo apt-get install update

$ sudo apt-get install git-core

Get Arduino style API:

$ sudo git clone http://github.com/pcduino/c_environment

pcduino_arduino_api_00

Check whether c_enviroment  have been downloaded or not

$ ls

pcduino_arduino_api_02

How to compile:

$ cd c_enviroment

$ ls

pcduino_arduino_api_01

$ make

pcduino_arduino_api_03

After make, some information will be shown on, if we can see “make[1]:Leaving directory ….”,that means the compiler has finished.

pcduino_arduino_api_04

View the compiled folder contents

pcduino_arduino_api_05

How to create new project

Put the download file the sample directory (put tmp36_yeelink.c in U disk,so tmp36_yeelink.c file path will be changed according to personal factors.

$ cp /media/USB Disk/tmp36_yeelink.c /home/ubuntu/c_enviroment/sample/

$ ls

pcduino_arduino_api_06

Modify Makefile in the sample directory, create a new project ,add the contents in below red box , save and exit

pcduino_arduino_api_07

Enter “make “in the /home/ubuntu/c_enviroment/sample directory

$ make

Some information has been printed out on the screen. when compile tmp36_yeelink.c successfully,and no error, will show the following information.

pcduino_arduino_api_08

The compiler executable files in the /home/ubuntu/c_enviroment/output/test/ directory

pcduino_arduino_api_09




        

Tags: Arduino-ish Program

Share!
Tweet

Alvin Jin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors