.EventBox Image Button General

Using an event box with an image in it is a nice and simple way to make a button that will do exactly what you want – display an image and trigger an event when pressed and released.  Its advantage over GtbButton is that is just does that without adding a highlight effect and border.  It’s […]

Read More

.GtkButton General

EventBox Image based buttons can be a simpler approach to buttons based on an image!  See here. GtkButtons should be great, but they can be a right pain.  Its like they got sort of implemented but without being polished off to allow them to be easily customised and made sexy.  The documentation is basic and there seems […]

Read More

Close Window

Will cause gtk to exit completely if it is the only window gtk_widget_destroy(GTK_WIDGET(MainWindow));  

Read More

Mouse Cursor

Hide the mouse cursor Mouse pointer appears after a button press We’ve found this can occur and seems like a gtk bug. Moving the mouse will cause the pointer to immediately vanish, so the pointer is supposed to be hidden still. Updating the screen content by say updating an image or text widget wouldn’t remove […]

Read More

Installing

Fixing broken installs You can use the "–fix-missing" option to retry an install and look for items that we're previously missed due to errors sudo apt-get install somename –fix-missing  

Read More

Backlight Control-Hardware

We need the screen to remain blank (black) while the RPi boots so the nasty linux scrolling text isn’t seen as it would look awful for the product we’re using it in (it needs to startup with a product splash screen image once the RPi is ready to display it). The backlight on the display […]

Read More

Raspbian Versions

Full version vs Lite Version The Lite version is stripped down to create a smaller image (needed for the compute module fixed 4GB flash memory for instance) and doesn't include the GUI (command line use only). Jessie vs Wheezy Official posts about the change Jessie Is Here Main Changes Raspbian has been updated to the new stable version […]

Read More

Multiple Network Adaptors

Using eth0 and wlan0 This can be problematic with Raspbian.  We have found out the hard way that using DHCP on both adaptors results in eth0 working fine but the gateway IP address assigned by wlan0 DHCP being completely ignored and when using wlan0 to send packets the Linux OS sends ARP requests assuming that any destination IP address […]

Read More

.RPi 7″ Display General

Manufacturer Part No: RASPBERRYPI-DISPLAY 7″, 800 x 480 pixels 10-finger capacitive touch Screen Dimensions: 194mm x 110mm x 20mm (including standoffs) Viewable screen size: 155mm x 86mm Documentation https://www.raspberrypi.org/products/raspberry-pi-touch-display/ raspberrypi.org/blog/the-eagerly-awaited-raspberry-pi-display/ element 14 raspberrypi.org Pimoroni FAQ Page

Read More

Using Strings-Characters

Passing String to a function that expects char * Pass Char array to a String Pass char to string Accessing characters in a string Remove Trailing Character

Read More