C is a natural choice to program in on the Raspberry Pi. It's very powerful, usable on virtually all hardware platforms and really similar to lots of other programming languages such as Java, PHP, C# and objective C. As popular programming languages go its as powerful as it gets, with only assembler beating it in […]
All posts by
Creating A Geany Project
Creating a Project Project > New. Give the project a name and choose where to save it. File > New with template > main.c Save it as main.c As a good starting point copy the bcm2835 blink project sample code into your new main.c file and connect a LED positive pin to Pin 11 of […]
Running Your Exe
Running your exe from the command prompt If you are in the same directory: ./myexefile //The '.' says 'in this directory' If you are in another directory: /home/pi/projects/myexefile If you need root permissions (e.g. your application uses IO control) then add sudo in front of the command to elevate the command permissions to the root […]
bcm2835 by Mike McCauley
This library also supports the RPi2 and upwards, with the bcm2836 and upwards chipsets Installing The Library The library homepage In the commands below change the .XX to match the current library version number, e.g. “.37”. If you are using the GUI then open the command prompt using Menu > Other > LXTerminal Using your […]
.Setting Up Windows Eclipse Programming of the RPi
We no longer use this approach and this page may be out of date – it is left here for archive puropses. We now use NetBeans for C/C++ development on the RPi, see here. Using A Windows PC to develop C code for your Raspberry Pi can be done. These notes on how to do it […]
Installing Geany
If Geany is not installed (not in Menu (Windows Start button) > Programming) install it as follows: Menu > Other > LX Terminal Enter the command: sudo apt-get install geany Confirm the install and it will be added to the ‘Menu > Programming’ folder
.Geany General
Geany is a lightweight IDE which runs well on the RPi and removes you from having to use the command line compiler for C programming. Its a popular choice for the RPi giving you a decent IDE interface to program in (although it is inevitably still somewhat sluggish when compared to programming on a typical desktop PC with its […]
Command prompt
Menu > Other > LX Terminal Run GUI from command line
Win32DiskImager
Download Win32DiskImager from the Raspberry Pi Downloads Page or from http://sourceforge.net/projects/win32diskimager/files/latest/download Insert your SD Card and then run Win32DiskImager.exe. It may give an error message on startup, but you can often ignore it. It should find your SD Card drive or if not select it. Select the file '#.img' image file you wish to use and then press […]
ARM Bare Metal Coding
dwelch67 Examples