piface / pifacecad

PiFace Control and Display
GNU General Public License v3.0
47 stars 38 forks source link

Documentation Examples error #13

Closed framboosejh closed 9 years ago

framboosejh commented 9 years ago

I think that there is an error in de documentation in the part: Examples-Basic usage-Interrupts. The part on the end: 'The Event object....' says:

import pifacecad cad = pifacecad.PiFaceCAD() listener = pifacecad.InputEventListener(chip=cad) listener.register(0, pifacecad.IODIR_RISING_EDGE, print) listener.activate() I did try that but I get the error: AttributeError: 'module' object has no attribute 'InputEventListener'. Is this a typo in the documentation,or is it an error in the module? I replaced 'InputEventListener' with 'SwitchEventListener' and it works out fine. I get indeed the output on my screen.

thomasmacpherson commented 9 years ago

Thank you, this has been corrected in the documentation.