Go to advanced search

by AndyD
Mon Dec 02, 2019 10:56 am
Forum: Graphics programming
Topic: Best way to handle sprites
Replies: 10
Views: 481

Re: Best way to handle sprites

A (long) long time ago when the Raspberry Pi was very new, I wrote some DispmanX code to try and work out and demonstrate the API. If you are interested it is available on github - https://github.com/AndrewFromMelbourne/raspidmx
by AndyD
Mon Dec 02, 2019 10:45 am
Forum: C/C++
Topic: Which C++ book do you recommend?
Replies: 4
Views: 230

Re: Which C++ book do you recommend?

If you are starting from C and learning C++, I would recommend Stroustrup: A Tour of C++ (Second Edition).. It is a better introduction to C++ than the 'The C++ Programming Language', which goes deeper into the features of C++, but is a bit more difficult to read.
by AndyD
Tue Jul 16, 2019 9:23 am
Forum: Graphics programming
Topic: Speeding up rpi-fbcp
Replies: 57
Views: 26155

Re: Speeding up rpi-fbcp

Just a short question:Is this rpi-fbcp program still work on latest RPI4 Models? I heard about that RPI4 has a VC6 core than VC4 of previous models but not sure if there is any support changes to it OMX API. Hopefully someone will correct me if I am wrong. It is my understanding that rpi-fbcp (and ...
by AndyD
Thu May 23, 2019 8:41 am
Forum: Graphics programming
Topic: Dispmanx VNC Server
Replies: 76
Views: 72611

Re: Dispmanx VNC Server

This might explain it https://github.com/hanzelpeter/dispmanx ... rk/members
The code was originally written by Hanzel Peter. It was then forked by Patrik Olasusson and modified or re-written.
by AndyD
Tue Jan 22, 2019 1:53 am
Forum: C/C++
Topic: fb mailbox access in order to double-buffer
Replies: 7
Views: 1262

Re: fb mailbox access in order to double-buffer

Is there any reason that you particularly want to use the mailbox interface? The links I provided above have working examples of framebuffer double buffering using ioctl calls using a filedescriptor from opening the framebuffer device (/dev/fb0).
by AndyD
Thu Jan 17, 2019 11:49 pm
Forum: C/C++
Topic: fb mailbox access in order to double-buffer
Replies: 7
Views: 1262

Re: fb mailbox access in order to double-buffer

The Raspberry Compote blog may help you. The post Low-level Graphics on Raspberry Pi (part X update II) could be a good place to start.
by AndyD
Fri Oct 19, 2018 9:23 pm
Forum: C/C++
Topic: C++ library to use with Adafruit SSD1306 I2C LCD
Replies: 5
Views: 4144

Re: C++ library to use with Adafruit SSD1306 I2C LCD

I have some code on github that you may find useful : libSSD1306
by AndyD
Sat Aug 25, 2018 1:07 am
Forum: C/C++
Topic: C++ - get all cpu usage
Replies: 3
Views: 1681

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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?

Go to advanced search