Go to advanced search

by AndyD
Sat Aug 25, 2018 1:07 am
Forum: C/C++
Topic: C++ - get all cpu usage
Replies: 3
Views: 359

Re: C++ - get all cpu usage

You could try finding the source for the system monitor gui that you are looking at.
by AndyD
Thu Aug 23, 2018 9:26 am
Forum: Graphics programming
Topic: dispmanx show picture
Replies: 3
Views: 388

Re: dispmanx show picture

I have some code on github that will display a PNG file using dispmanx, that you may be worth a look.

https://github.com/AndrewFromMelbourne/raspidmx
by AndyD
Fri Jun 29, 2018 11:59 pm
Forum: C/C++
Topic: Recompiling libpcap for C++
Replies: 17
Views: 795

Re: Recompiling libpcap for C++

srjacob wrote:
Fri Jun 29, 2018 11:31 pm
I am using code::blocks ide.
I don't use code::blocks, but this answer on stackoverflow looks like the right direction.
by AndyD
Fri Jun 29, 2018 10:47 pm
Forum: C/C++
Topic: Recompiling libpcap for C++
Replies: 17
Views: 795

Re: Recompiling libpcap for C++

Where would I point the linker libraries? The program compiles fine, but the linker can't find the libpcap libraries. How are you linking your program? Are you using an IDE or compiling and linking on the command line? The example command I gave in my first post will compile and link a single sourc...
by AndyD
Fri Jun 29, 2018 10:33 am
Forum: C/C++
Topic: Recompiling libpcap for C++
Replies: 17
Views: 795

Re: Recompiling libpcap for C++

Hi Steve, You won't need to compile libpcap yourself, but you will need to install the developer version of the library which includes the headers. If you are using Raspbian you can install the developer version of libpcap using apt-get install libpcap-dev Then compile using g++ program.cpp -lpcap -...
by AndyD
Sun Apr 29, 2018 12:41 am
Forum: Graphics programming
Topic: How to achieve Dispmanx supersampling with sprites?
Replies: 4
Views: 684

Re: How to achieve Dispmanx supersampling with sprites?

I haven't tried to do this myself. When you specify the source rectangle for an element, the x and y offset and the width and height are specified as 16.16 fixed point 32 bit integers. You could try and add an element and change the source rectangle with fractional x and y offsets. Have a look at sc...
by AndyD
Thu Jun 15, 2017 11:24 am
Forum: C/C++
Topic: Defining header files
Replies: 1
Views: 521

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: 850

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: 289
Views: 95986

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: 289
Views: 95986

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: 2207

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: 2031

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: 2031

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: 2031

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: 4114

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: 16055

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: 16055

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: 16055

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: 16758

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: 9642

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: 9642

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: 771

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: 561

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: 1703

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: 1703

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.

Go to advanced search