Go to advanced search

by AndyD
Thu Jun 15, 2017 11:24 am
Forum: C/C++
Topic: Defining header files
Replies: 1
Views: 245

Re: Defining header files

There is a good answer on Stack Overflow - https://stackoverflow.com/questions/173 ... tions-in-c
by AndyD
Wed May 10, 2017 9:06 am
Forum: C/C++
Topic: How to check wifi signal strength using C programe
Replies: 2
Views: 456

Re: How to check wifi signal strength using C programe

I have some code on Gist that can scan for wifi APs and reports SSID and signal strength.

https://gist.github.com/AndrewFromMelbo ... 86fa0c07ee
by AndyD
Tue Mar 14, 2017 11:35 am
Forum: Advanced users
Topic: Moving Linux kernel to 4.9
Replies: 287
Views: 65989

Re: Moving Linux kernel to 4.9

Phylter wrote:The gadget issue appears to have been fixed in the 4.9 kernel in Arch Linux. This is kernel 4.9.14.
Yes it works for me too. I believe it was fixed with this pull request
by AndyD
Fri Mar 03, 2017 1:18 pm
Forum: Advanced users
Topic: Moving Linux kernel to 4.9
Replies: 287
Views: 65989

Re: Moving Linux kernel to 4.9

I'm using a Raspbery Pi Zero and I've been using it with the documentation found here: https://learn.adafruit.com/turning-your-raspberry-pi-zero-into-a-usb-gadget/ethernet-gadget I've noticed that with the 4.9 series kernels these overlays no longer work as expected. I clearly get the usb0 device b...
by AndyD
Wed Feb 22, 2017 9:07 am
Forum: Off topic discussion
Topic: Compatibility of RPI 3 and Odroid Screen
Replies: 10
Views: 1278

Re: Compatibility of RPI 3 and Odroid Screen

It appears to be just a screen with an HDMI input. There should be no reason it won't work with your Raspberry Pi. You may not be able to mount your Raspberry Pi on the back, but should be able to hook it up with the supplied cables (last image in that listing).
by AndyD
Thu Feb 09, 2017 9:52 am
Forum: Graphics programming
Topic: Picture in picture
Replies: 5
Views: 1362

Re: Picture in picture

You are welcome @mgrunt
by AndyD
Tue Feb 07, 2017 9:34 am
Forum: Graphics programming
Topic: Picture in picture
Replies: 5
Views: 1362

Re: Picture in picture

I will try to have a look, but it may be a while before I can look at it. I have never user Retropie.
by AndyD
Mon Feb 06, 2017 8:29 pm
Forum: Graphics programming
Topic: Picture in picture
Replies: 5
Views: 1362

Re: Picture in picture

The Raspberry Pi has an API called DispmanX that allows you to create a number of different layers for the display. The framebuffer is one layer, but you can create new layers that can be composited on top of the framebuffer. The layer support transparency, so that lower layers can be visible or ble...
by AndyD
Sat Jan 21, 2017 11:44 pm
Forum: C/C++
Topic: Where's my core file?
Replies: 18
Views: 2296

Re: Where's my core file?

... But there's no core file in the current directory where I was running it. Not leaving core dumps all over the place is ideal from a space standpoint but how do I turn them on when I want them? ... Have a look at ulimit . In my .bashrc file I have ulimit -c unlimited to get core files. By defaul...
by AndyD
Wed Jan 18, 2017 12:44 pm
Forum: Compute Module
Topic: CM3
Replies: 90
Views: 10992

Re: CM3

<off topic> Nice to see you back AndyD :D I suspect there's a Chinese Zero whose revision you should add too. This guy appears to have one: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=141296#p1099811 Edit: although that's likely just different in the manufacturer bit field, as will be t...
by AndyD
Wed Jan 18, 2017 12:32 pm
Forum: Compute Module
Topic: CM3
Replies: 90
Views: 10992

Re: CM3

PhilE wrote:Both CM3 and CM3L have Revision 0x00a020a0.
Thanks @PhilE
by AndyD
Wed Jan 18, 2017 11:56 am
Forum: Compute Module
Topic: CM3
Replies: 90
Views: 10992

Re: CM3

I would be very interested to know the Revision from /proc/cpuinfo for the CM3 and CM3L. Would someone be kind enough to post the Revision numbers here?
by AndyD
Thu Oct 13, 2016 11:03 pm
Forum: C/C++
Topic: The MagPi does C :-)
Replies: 124
Views: 11883

Re: The MagPi does C :-)

Thanks @jojopi, I was beginning to think I was the voice in the wilderness.
by AndyD
Thu Sep 29, 2016 12:54 pm
Forum: Graphics programming
Topic: GUI application (no console/window manager)
Replies: 24
Views: 6044

Re: GUI application (no console/window manager)

... I can't see any difference between this approach and raspi2fb. IMHO they are identical, with the overhead to update main display too. What is the frequency of your callback function that update the screen? Do you update all the pixels inside your callback functions? Maybe it is better to update...
by AndyD
Thu Sep 29, 2016 1:06 am
Forum: Graphics programming
Topic: GUI application (no console/window manager)
Replies: 24
Views: 6044

Re: GUI application (no console/window manager)

pozz wrote:...I hope it is possible to redirect Gtk application framebuffer to /dev/fb1. Do you confirm?...
Have a look here Using GTK+ on the Framebuffer

You can set the environment variable GDK_DISPLAY to specify a different framebuffer device.
by AndyD
Wed Sep 28, 2016 10:54 pm
Forum: Add-ons
Topic: rpi 3 adafruit pitft
Replies: 2
Views: 447

Re: rpi 3 adafruit pitft

The information appears to be on this page on the Adafruit website - Adafruit pitft-28 inch resistive touchscreen display raspberry-pi/overview ...This design uses the hardware SPI pins (SCK, MOSI, MISO, CE0, CE1) as well as GPIO #25 and #24.... ...We bring out GPIO #23, #22, #21, and #18 to the fou...
by AndyD
Mon Sep 26, 2016 9:09 am
Forum: Troubleshooting
Topic: Custom Image Effect Raspberry Pi Camera
Replies: 2
Views: 291

Re: Custom Image Effect Raspberry Pi Camera

I think you can add effects using GL shaders. There are some examples in the gl_scenes directory of raspicam. https://github.com/raspberrypi/userland/tree/master/host_applications/linux/apps/raspicam/gl_scenes You might get a better more complete answer in the Graphic Programming sub-forum. You can ...
by AndyD
Sat Sep 17, 2016 1:35 pm
Forum: Graphics programming
Topic: Jpeg lib example?
Replies: 3
Views: 1274

Re: Jpeg lib example?

John Public wrote:FLTK looks interesting but is there a C (not C++) wrapper?
FLTK is written in C++. It has been around for a long time, but I haven't seen a C wrapper.
by AndyD
Sat Sep 17, 2016 7:43 am
Forum: Graphics programming
Topic: Jpeg lib example?
Replies: 3
Views: 1274

Re: Jpeg lib example?

I have a small C++ example that decodes a JPEG file using libjpeg and display it using FLTK. Possibly not exactly what you are looking for, but the fill_buffer() function will show you how to decode a JPEG file.

I have posted it on gist here.
by AndyD
Tue Sep 06, 2016 9:16 pm
Forum: Graphics programming
Topic: Speeding up rpi-fbcp
Replies: 51
Views: 13237

Re: Speeding up rpi-fbcp

No sorry no updates. Not getting much time to look at Raspberry Pi projects these days.
by AndyD
Sun Aug 14, 2016 9:47 pm
Forum: Troubleshooting
Topic: Having Issues installing software for the XBee
Replies: 4
Views: 469

Re: Having Issues installing software for the XBee

Yes, sorry I should have read the error message. The message is No such file or directory . If the file wiringPi.tar.gz is in your Download directory, are you changing the directory to the Download directory before untarring the file? You either need to change the directory (cd) so that your current...
by AndyD
Sun Aug 14, 2016 10:59 am
Forum: Troubleshooting
Topic: Having Issues installing software for the XBee
Replies: 4
Views: 469

Re: Having Issues installing software for the XBee

You shouldn't need to use sudo to extract a tar file. To extract a compressed/gziped tar file you can use the z command line option. Try:-

Code: Select all

tar xvzf wiringPi.tar.gz
by AndyD
Sun Aug 14, 2016 10:06 am
Forum: C/C++
Topic: X programming.
Replies: 4
Views: 756

Re: X programming.

... Further is there some equivalent to libsvga in Raspbian, or otherwise available for ARM Linux? Even though that does not work under X I would still like to know for other graphics projects. ... You can do low level graphics on the Linux framebuffer. Take a look at the Raspberry Compote Blog , i...
by AndyD
Sat Aug 13, 2016 1:43 am
Forum: C/C++
Topic: Getting board serial number and CPU ID using C/C++ (HWFP))
Replies: 14
Views: 3134

Re: Getting board serial number and CPU ID using C/C++ (HWFP

If you are interested, I have some small snippets of C code on github, that get the Raspberry Pi serial number using the mailbox interface or the code from vcgencmd(libbcm_host).
by AndyD
Thu Aug 11, 2016 9:13 pm
Forum: Graphics programming
Topic: Speeding up rpi-fbcp
Replies: 51
Views: 13237

Re: Speeding up rpi-fbcp

That looks interesting @mrvanes. I will try and see if I can do something similar.
@gmli, sorry I missed you question. I wonder if @mrvanes approach will help with the tearing.

Go to advanced search