Go to advanced search

by talcat
Wed Dec 09, 2015 9:59 pm
Forum: Python
Topic: Need better understanding of GPIO.add_event_detect
Replies: 2
Views: 1454

Re: Need better understanding of GPIO.add_event_detect

So when I trigger the camera the other event on the different GPIO is blocked? GPIO.add_event_detect will trigger the callback function in another thread. However, the callback functions may block eachother as they are in the same thread ("Note that in this case, the callback functions are run...
by talcat
Tue Dec 08, 2015 8:49 pm
Forum: Python
Topic: RPi.GPIO sudo versus sudo-less performance differences
Replies: 6
Views: 3234

Re: RPi.GPIO sudo versus sudo-less performance differences

I doubt it? Again, this happens (on both an RPI B and RPi 2) on very simple code - a script that literally just sets edge detection on a pin....
by talcat
Fri Nov 13, 2015 3:39 pm
Forum: Python
Topic: INstalling iPython and Jupyter on Raspi
Replies: 4
Views: 9633

Re: INstalling iPython and Jupyter on Raspi

As far as I'm aware, ipython-notebook is depreciated (its now just jupyter)

If you are on raspbian, you should try:

sudo apt-get install python-dev ipython jupyter

(or the python3 equivalents)
by talcat
Fri Nov 13, 2015 12:50 pm
Forum: Python
Topic: Raspberry + pygame + button
Replies: 12
Views: 4593

Re: Raspberry + pygame + button

For minimum change in your code you can use the RPi.GPIO modules event_detected function (reading the docs at http://sourceforge.net/p/raspberry-gpio-python/wiki/Inputs/ will help a lot. This will return a true or false if there is an edge detected on that pin - so if that button was pressed So modi...
by talcat
Thu Nov 12, 2015 11:43 pm
Forum: Python
Topic: RPi.GPIO sudo versus sudo-less performance differences
Replies: 6
Views: 3234

RPi.GPIO sudo versus sudo-less performance differences

Hey guys! I've recently just updated RPi.GPIO to 0.6.0a3 in order to be able to access the GPIO pins from not root. However, I've noticed a very annoying behaviour (that I think has also been documented https://www.raspberrypi.org/forums/viewtopic.php?t=124738 . Basically, 70%-90% of the time when t...

Go to advanced search