Tests Using '2012-09-18-wheezy-raspbian.img' Using this code running: while (1) { bcm2835_gpio_write(RPI_GPIO_P1_13, 0); bcm2835_gpio_write(RPI_GPIO_P1_13, 1); } Running the application at the command prompt (no GUI) gave this on the pin: i.e. no significant process interruptions. Running the application inside the GUI (startx) with nothing else specific happening gave this: Very occasional process interruptions. Now starting the Midori browser […]
All posts by
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/
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 […]
C General
Good C Resources www.cplusplus.com/reference/clibrary/cstdio/
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
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 […]
Updating Packages
Use the folloing command to update software which was installed using apt-get:
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 […]
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
File System General
General Directories Files Move or rename file Move all files
