Hi,
I have installed all of the piface software on my Pi and everything appears to work from the gui when loaded. I tried running piface_test.py using
sudo python piface_test.py
and get an error everytime i press a button.
FFThe left most switch is switch 1
Press switch 1...data: 0
data: 0
data: 0
data: 0
data: 1
F
======================================================================
FAIL: test_output_objects (__main__.TestPiFace)
----------------------------------------------------------------------
Traceback (most recent call last):
File "piface_test.py", line 67, in test_output_objects
self.assertEqual(expected_output_bpat, pfio.read_output())
AssertionError: 1 != 3
======================================================================
FAIL: test_pin_translation (__main__.TestPiFace)
Tests the pin translation functions
----------------------------------------------------------------------
Traceback (most recent call last):
File "piface_test.py", line 21, in test_pin_translation
self.assertEqual(bit_mask, 1 << (pin-1))
AssertionError: 2 != 1
======================================================================
FAIL: test_switches (__main__.TestPiFace)
----------------------------------------------------------------------
Traceback (most recent call last):
File "piface_test.py", line 37, in test_switches
'Switch %d was pressed.' % pressed_switch)
AssertionError: Switch 0 was pressed.
----------------------------------------------------------------------
Ran 3 tests in 1.520s
FAILED (failures=3)
I can't work out what the problem is. It all appears to be functioning but I'm worried that the test is failing...