Go to advanced search

by -rst-
Thu Jan 22, 2015 4:15 pm
Forum: OpenGLES
Topic: Small Example
Replies: 9
Views: 5295

Re: Small Example

Old one yes, but in case someone is looking for the correct link seems to be http://www.peteronion.org.uk/OpenGLES/
by -rst-
Thu Jan 22, 2015 12:37 pm
Forum: Graphics programming
Topic: Graphics Acronyms & What works with what?
Replies: 15
Views: 6888

Re: Graphics Acronyms & What works with what?

Would you please point out where is things like PIL and SimpleCV in your Pi diagram? Not very familiar with these two, but based on my limited knowledge and some quick googling... PIL would sit on the same level as Pi3D - with a link from the application to PIL (and back) only. If the programmer wa...
by -rst-
Tue Jan 20, 2015 5:37 pm
Forum: Graphics programming
Topic: Graphics Acronyms & What works with what?
Replies: 15
Views: 6888

Re: Graphics Acronyms & What works with what?

Thanks, procount!

The library for controlling the compositor surfaces on RPi is dispmanx. This may be the only info on the limits http://www.raspberrypi.org/forums/viewt ... 59#p568678
by -rst-
Tue Jan 20, 2015 4:09 pm
Forum: Graphics programming
Topic: Graphics Acronyms & What works with what?
Replies: 15
Views: 6888

Re: Graphics Acronyms & What works with what?

This is in fact fairly interesting question set - probably a source of confusion for many. Therefore some clarifications may be in place... (others feel free to comment, correct and extend - I do not claim to be an expert on this) Raspberry Pi includes (built into the one 'System On a Chip' (SoC) pa...
by -rst-
Fri Jan 16, 2015 5:25 pm
Forum: Graphics programming
Topic: Is the FBIO_WAITFORVSYNC ioctl implemented in Rpi's fb? [OBSOLETE info]
Replies: 56
Views: 30301

Re: Is the FBIO_WAITFORVSYNC ioctl implemented in Rpi's fb?

Cleaned up 'pure fb' version of the double-buffering example and some info on the display blanking issue:
http://www.raspberrypi.org/forums/viewt ... 44#p672744
by -rst-
Fri Jan 16, 2015 5:18 pm
Forum: Graphics programming
Topic: Low-level (Linux framebuffer) graphics programming tutorial
Replies: 64
Views: 84178

Re: Low-level (Linux framebuffer) graphics programming tutor

Cleaned up 'pure fb' version of the double-buffering example and some info on the display blanking issue:
https://github.com/rst-/raspberry-compo ... btestXIV.c
and
http://raspberrycompote.blogspot.ie/201 ... -part.html
by -rst-
Tue Jan 06, 2015 4:33 pm
Forum: Graphics programming
Topic: Is the FBIO_WAITFORVSYNC ioctl implemented in Rpi's fb? [OBSOLETE info]
Replies: 56
Views: 30301

Re: Is the FBIO_WAITFORVSYNC ioctl implemented in Rpi's fb?

Well, I managed to test this now myself too (lucky to have a colleague who brought his RPi to work and let me loan it :D ): both the ioctl pan and the mailbox pan with the FBIO_WAIT_FOR_VSYNC ioctl right _after_ seem to work fine! So (comment out/in to try options): // switch page /**/ // ioctl vers...
by -rst-
Tue Jan 06, 2015 2:11 pm
Forum: Graphics programming
Topic: Is the FBIO_WAITFORVSYNC ioctl implemented in Rpi's fb? [OBSOLETE info]
Replies: 56
Views: 30301

Re: Is the FBIO_WAITFORVSYNC ioctl implemented in Rpi's fb?

Hmm, interesting - so the only combination I did not come to think of (ioctl vsync + mailbox pan)... I am fairly sure I tried this https://github.com/rst-/raspberry-compote/blob/master/fb/fbtestXI.c changing the 'switch page' section to: // switch page vinfo.yoffset = cur_page * vinfo.yres; if (ioct...
by -rst-
Mon Jan 05, 2015 5:14 pm
Forum: Java
Topic: Timing accuracy
Replies: 9
Views: 2178

Re: Timing accuracy

As long as you don't do anything safety critical, I would say Java with the microsecond timing should be good enough. I have played a bit with a similar sensor using Python and as far as I understand it is definitely not any faster or more "realtime" than Java but works ok enough for this. Of course...
by -rst-
Mon Jan 05, 2015 5:02 pm
Forum: Graphics programming
Topic: How to wait for vsync? (vc_dispmanx_update_submit_sync?)
Replies: 2
Views: 3198

Re: How to wait for vsync? (vc_dispmanx_update_submit_sync?)

A bit late maybe but... As far as I have understood that would be the only way to do it properly. I haven't used EGL but plain dispmanx resources: // begin display update vars->update = vc_dispmanx_update_start( 10 ); assert( vars->update ); // change element source to be the current resource vc_dis...
by -rst-
Wed Dec 31, 2014 4:41 pm
Forum: Other programming languages
Topic: [HTML] Submit form without refreshing the page
Replies: 8
Views: 11539

Re: [HTML] Submit form without refreshing the page

It looks like your form still gets submitted to the URL defined in the form action. You should look at getting rid of the form and making the buttons to call a JavaScript function that does the AJAX call...
by -rst-
Wed Dec 31, 2014 4:21 pm
Forum: Python
Topic: Test keyboard keypress live - without pressing ENTER!
Replies: 4
Views: 6333

Re: Test keyboard keypress live - without pressing ENTER!

Does not seem too straightforward http://stackoverflow.com/questions/510357/python-read-a-single-character-from-the-user Curses has a (possible) drawback of clearing the screen at init. Interestingly on Windows with Python 2 that sys.stdin.fileno() returns 0 (as one would expect) ...isn't stdin fd 0...
by -rst-
Wed Dec 17, 2014 3:48 pm
Forum: Networking and servers
Topic: Quick notification
Replies: 1
Views: 491

Re: Quick notification

Within the dorm network you should be able to connect to your RPI over HTTP using the IP address. From outside there is no easy way in (without access to port forwarding configuration on the firewall), would need to have the RPi polling something - maybe checking something like the existence of a Go...
by -rst-
Thu Nov 27, 2014 2:42 pm
Forum: Automation, sensing and robotics
Topic: No module serial error when using 2 serial ports at the same
Replies: 2
Views: 580

Re: No module serial error when using 2 serial ports at the

Would assume you have found your answer by now, but just in case someone else finds it useful: never use a module name as a variable name. After this line: serial = serial.Serial("/dev/ttyUSBport1", baudrate=2400) there is no more module called 'serial' defined but instead a local variable called 's...
by -rst-
Thu Nov 27, 2014 1:58 pm
Forum: Automation, sensing and robotics
Topic: Webcam rasberry bluetooth robot
Replies: 2
Views: 870

Re: Webcam rasberry bluetooth robot

Why Bluetooth and not Wifi? If you could use WiFi, you could use the software package called 'motion' to stream the video to you pc in no time and the control should also work well enough and probably would be easier to implement than on Btooh...
by -rst-
Thu Nov 27, 2014 1:54 pm
Forum: Automation, sensing and robotics
Topic: [Help!] Bluetooth Controlled RGB LED Light Strip
Replies: 2
Views: 3968

Re: [Help!] Bluetooth Controlled RGB LED Light Strip

I would switch the Bluetooth to WiFi if any way possible ...simple web server in Python, phones have web browsers already... In any case you would probably have to program a server application for RPi and the client(s) for the phones - what little I know of bluetooth it is not the easiest to program.
by -rst-
Thu Sep 04, 2014 9:47 pm
Forum: Graphics programming
Topic: Is the FBIO_WAITFORVSYNC ioctl implemented in Rpi's fb? [OBSOLETE info]
Replies: 56
Views: 30301

Re: Is the FBIO_WAITFORVSYNC ioctl implemented in Rpi's fb?

Yep, I have just done a quick test on this - seems to work fine! Will test a bit more and close the ticket then. Breaking news published in the blog too http://raspberrycompote.blogspot.ie/201 ... -part.html

Thanks (especially popcornmix)!
by -rst-
Tue Sep 02, 2014 11:49 am
Forum: Graphics programming
Topic: Is the FBIO_WAITFORVSYNC ioctl implemented in Rpi's fb? [OBSOLETE info]
Replies: 56
Views: 30301

Re: Is the FBIO_WAITFORVSYNC ioctl implemented in Rpi's fb?

After a couple of failed attempts to compile the kernel :oops: I have submitted an issue 'bcm2708_fb_pan_display is not implemented' in github: https://github.com/raspberrypi/linux/issues/679
by -rst-
Mon May 19, 2014 3:06 pm
Forum: Python
Topic: 1080p with pygame
Replies: 3
Views: 1665

Re: 1080p with pygame

What does pygame.display.Info() return?

And what resolution does it give if you call pygame.display.set_mode() without specifying resolution?
by -rst-
Mon May 19, 2014 2:45 pm
Forum: Python
Topic: Syntax for run mjpg_streamer from python script
Replies: 2
Views: 813

Re: Syntax for run mjpg_streamer from python script

Maybe one of the os.exec* or os.popen* functions - https://docs.python.org/2/library/os.html
by -rst-
Tue Apr 22, 2014 2:40 pm
Forum: Python
Topic: Porting from OpenGL to OpenGLES
Replies: 11
Views: 3199

Re: Porting from OpenGL to OpenGLES

Pi + OpenGL* + Python ...sounds like might be worth taking a look at Pi3d http://www.pi3d.net/
by -rst-
Tue Apr 22, 2014 2:15 pm
Forum: Python
Topic: automatically change web pages
Replies: 8
Views: 2018

Re: automatically change web pages

If you already figured out how to run Chromium from boot, there is (as others have already noted) nothing Pi specific ...and as far as I can see no Python required (well, maybe one could control Chromium form an outside Python script..) but HTML and JavaScript instead. First step would be to get the...
by -rst-
Fri Apr 18, 2014 6:14 pm
Forum: Python
Topic: Basic LED test via GPIO not working -- HELP!
Replies: 9
Views: 3453

Re: Basic LED test via GPIO not working -- HELP!

croston wrote:RPi.GPIO (latest version) is installed by default for both Python 2 and 3 in Raspbian AFAIK.
This is true, at least for the latest Raspbian.

Go to advanced search