Welcome, Guest
Username: Password: Remember me

TOPIC: Create, Edit and Compile any Code

Create, Edit and Compile any Code 5 years 11 months ago #891

  • ES_Team
  • ES_Team's Avatar
  • Administrator
  • Posts: 23
  • Thank you received: 3
  • Karma: 2
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: 5 years 3 months ago by Ray.
The administrator has disabled public write access.
The following user(s) said Thank You: BM
Time to create page: 0.163 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio