Welcome, Guest
Username: Password: Remember me

TOPIC: Create, Edit and Compile any Code

Create, Edit and Compile any Code 2 years 4 months ago #891

  • ES_Team
  • ES_Team's Avatar
  • OFFLINE
  • Administrator
  • Posts: 23
  • Thank you received: 2
  • Karma: 0
Using Raspbian and after installing the BCM2835 libraries, any code can be created using vim:
sudo nano example.c
If you are not familiar with vim editor check this, and you can always use any editor you like.

After editing your code you need to compile it:
gcc -o example -l rt example.c -l bcm2835

Final step is to execute it
sudo ./example
Last Edit: 1 year 8 months ago by Ray.
The administrator has disabled public write access.
The following user(s) said Thank You: BM
Time to create page: 0.352 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio