Eclipse General Notes

Adding The bcm2835 Library By Mike McCauley Install the library on a RPi by following the instructions here. Copy the bcm2835-#.# folder after compiling it onto your windows PC using a USB stick. Copy the following files: bcm2835.o libbcm2835.a into the folder: C:\cygwin\opt\cross\x-tools\arm-unknown-linux-gnueabi\arm-unknown-linux-gnueabi\sysroot\usr\lib\ Add the library to eclipse In eclipse, right click your project > Properties […]

Read More

Soft Reset

For the Debian installation at the command prompt enter: sudo shutdown "now" -r You can also use: sudo reboot The full file path for this command (if you needed it for specific uses) is: sudo /sbin/reboot    

Read More

Variables

For Raspberry Pi with a 32-bit processor Name C++ Bytes Range bool 1 true or false signed char int8_t 1 -128 to 127 unsigned char uint8_t 1 0 to 255 short int int16_t 2 -32768 to 32767 unsigned short int uint16_t 2 0 to 65535 int int32_t 4 -2147483648 to 2147483647 unsigned int uint32_t 4 0 […]

Read More

Web Browsers

Chromium An open-source browser on which Google’s Chrome browser is based. Its relatively lightweight memory usage makes Chromium a good choice for the Pi. To install open LX Terminal and type: sudo apt-get install chromium-browser Running chromium in kiosk mode http://lokir.wordpress.com/2012/09/16/raspberry-pi-kiosk-mode-with-chromium/ chromium –kiosk –incognito http://google.com To exit Kiosk mode: ATL+F4 ​Openening In App Mode No […]

Read More

Processes

Show processes ps -ef List processes ps ax List processes To kill a running program If you need to kill your program running in the background you can use this sudo killall my_project.a

Read More

Linux 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. Programming in C in the Raspberry Pi works great but tools such as geany are often sluggish to use due to RPi hardware […]

Read More

.Getting Your RPi Ready For C Programming

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 […]

Read More