Go to advanced search

by h8windozeh8
Tue Sep 10, 2013 10:49 pm
Forum: Python
Topic: InputEventListener is not listening
Replies: 3
Views: 1376

Re: InputEventListener is not listening

Thanks for your reply, I think there may be a problem That does work with one piface but fails with 2 pifaces. #!/usr/bin/env python3 from time import sleep import pifacedigitalio pifacedigitalio.init() pfd = pifacedigitalio.PiFaceDigital(0) def toggle_led0(event): print('trigger') listener = piface...
by h8windozeh8
Mon Sep 09, 2013 5:56 am
Forum: Python
Topic: InputEventListener is not listening
Replies: 3
Views: 1376

InputEventListener is not listening

Any reason why this does not work, ie: doesn't detect inputs. #!/usr/bin/env python3 import pifacedigitalio pifacedigitalio.init() pfd = pifacedigitalio.PiFaceDigital() def toggle_led0(event): pfd.leds[0].toggle() listener = pifacedigitalio.InputEventListener() listener.register(0, pifacedigitalio.I...
by h8windozeh8
Mon Sep 09, 2013 5:43 am
Forum: Python
Topic: Interrupt script by pressing keyboard
Replies: 1
Views: 549

Re: Interrupt script by pressing keyboard

Are you using:

Code: Select all

>>> listener = pifacedigitalio.InputEventListener()
>>> listener.register(0, pifacedigitalio.IODIR_ON, print_flag)
>>> listener.activate()
to poll for inputs?
Are you using Python 3?
by h8windozeh8
Sun Sep 08, 2013 3:18 am
Forum: Python
Topic: Pyaudio in Python 3
Replies: 6
Views: 10526

Re: Pyaudio in Python 3

That's it - sorry to be such a noob, working well now - thanks for all your help.
by h8windozeh8
Thu Sep 05, 2013 11:31 pm
Forum: Python
Topic: Pyaudio in Python 3
Replies: 6
Views: 10526

Re: Pyaudio in Python 3

Thanks for your reply - I have followed your instructions and on line 4 I get an error:
E: Invalid operation python3-dev
by h8windozeh8
Wed Sep 04, 2013 10:53 pm
Forum: Python
Topic: Pyaudio in Python 3
Replies: 6
Views: 10526

Re: Pyaudio in Python 3

Thank you for your reply - I installed Pyaudio as per instructions Here I used all the methods on the post including the last one.
by h8windozeh8
Tue Sep 03, 2013 9:22 pm
Forum: Python
Topic: Pyaudio in Python 3
Replies: 6
Views: 10526

Pyaudio in Python 3

I have searched the forum but cant find anything specific, I am a total noob so be kind to me. I am having trouble getting pyaudio to work in python 3. I need it to work in Python 3 as my pi-face python code in in Python 3. I would like to record a small sound sample to a wave file. I can record usi...

Go to advanced search