IO Speed

Using this C code running as an exe on "2012-09-18-wheezy-raspbian.img": while (1) { bcm2835_gpio_write(RPI_GPIO_P1_13, 0); bcm2835_gpio_write(RPI_GPIO_P1_13, 1); } the pin output was this: See Also http://codeandlife.com/2012/07/03/benchmarking-raspberry-pi-gpio-speed/

Read More

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