element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum raspberry pi with piface
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 1 reply
  • Subscribers 695 subscribers
  • Views 350 views
  • Users 0 members are here
Related

raspberry pi with piface

videogame95
videogame95 over 12 years ago

I have had not been able to get it working run all the programmed as explained in the quick start guild I wont to use the button on the piface to control two motors i have downloaded the wiring-pi program   sudo nano etc/modprode.d/raspi-blacklist.conf the file comes up empty ?

 

any with this please

 

I can run the digital emulator and the LEDS work with override enabled

 

1 do i need to run all program's in idle mode ?

2 I had a program runing on my other machine but still did not get the piface buttons to work

3 do I need to write a program to get the buttons working ?

 

4 which is the best way download piface image add to sd card ?

5 or use terminal to download emulator ?

6 do i need both emulator on the raspberry pi for it to work ?

  • Sign in to reply
  • Cancel
Parents
  • iagorubio
    0 iagorubio over 12 years ago

    Checkout you are using the full path the the file:

     

    Instead of "sudo nano etc/modprode.d/raspi-blacklist.conf" try :

    sudo nano /etc/modprode.d/raspi-blacklist.conf


    The "/" at the start of the file's path is important because it means to start searching for that file from the root directory. Without it it means to start searching for that file from current directory.


    I am sorry but I don't fully understand the other questions, but just as a pointer, every Python script you run in idle, can be run outside of idle.

     

    To download pyface emulator the best way is to boot your raspberry, log into it by ssh or plug a keyboard and screen to it, and on a terminal use the commands:

     

    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install python{,3}-pifacedigitalio

     

    https://github.com/piface/pifacedigitalio

     

    You don't need the emulator for the pifacedigitalio library to work, but you can easily install it with the same method but with those commands:

     

    sudo apt-get update
    sudo apt-get upgrade

    sudo apt-get install python3-pifacedigital-emulator


    https://github.com/piface/pifacedigital-emulator


    Usually for the buttons to make anything you need to write a program that reads the inputs from the buttons and makes something with this inputs.

     

    As example from the reference Reference — PiFace Digital I/O 3.0.5 documentation :

     

    def print_flag(event):

         print(event.interrupt_flag)


    listener = pifacedigitalio.InputEventListener()

    listener.register(0, pifacedigitalio.IODIR_ON, print_flag)

    listener.activate()


    This program should print something to standard output each time you press a button.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • iagorubio
    0 iagorubio over 12 years ago

    Checkout you are using the full path the the file:

     

    Instead of "sudo nano etc/modprode.d/raspi-blacklist.conf" try :

    sudo nano /etc/modprode.d/raspi-blacklist.conf


    The "/" at the start of the file's path is important because it means to start searching for that file from the root directory. Without it it means to start searching for that file from current directory.


    I am sorry but I don't fully understand the other questions, but just as a pointer, every Python script you run in idle, can be run outside of idle.

     

    To download pyface emulator the best way is to boot your raspberry, log into it by ssh or plug a keyboard and screen to it, and on a terminal use the commands:

     

    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install python{,3}-pifacedigitalio

     

    https://github.com/piface/pifacedigitalio

     

    You don't need the emulator for the pifacedigitalio library to work, but you can easily install it with the same method but with those commands:

     

    sudo apt-get update
    sudo apt-get upgrade

    sudo apt-get install python3-pifacedigital-emulator


    https://github.com/piface/pifacedigital-emulator


    Usually for the buttons to make anything you need to write a program that reads the inputs from the buttons and makes something with this inputs.

     

    As example from the reference Reference — PiFace Digital I/O 3.0.5 documentation :

     

    def print_flag(event):

         print(event.interrupt_flag)


    listener = pifacedigitalio.InputEventListener()

    listener.register(0, pifacedigitalio.IODIR_ON, print_flag)

    listener.activate()


    This program should print something to standard output each time you press a button.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube