Ich kriege DoorPI nicht gestartet:
2015-03-22 17:42:49,204 [TRACE] [conf.config_object] get_from_config
2015-03-22 17:42:49,220 [TRACE] [conf.config_object] get_keys for section keyboards returns ['testsystem']
2015-03-22 17:42:49,223 [INFO] [keyboard.KeyboardInterface] using multi-keyboard mode (keyboards: testsystem)
2015-03-22 17:42:49,225 [INFO] [keyboard.KeyboardInterface] try to add keyboard 'testsystem' to handler
2015-03-22 17:42:49,228 [TRACE] [conf.config_object] get_string for key testsystem in section keyboards (default: gpio) returns gpio
2015-03-22 17:42:49,230 [TRACE] [conf.config_object] get_keys for section testsystem_InputPins returns ['11']
2015-03-22 17:42:49,233 [TRACE] [conf.config_object] get_keys for section testsystem_OutputPins returns ['18', '7']
2015-03-22 17:42:49,236 [TRACE] [conf.config_object] get_integer for key bouncetime in section testsystem_keyboard (default: 2000) returns 200
2015-03-22 17:42:49,239 [TRACE] [conf.config_object] get_integer for key polarity in section testsystem_keyboard (default: 0) returns 0
2015-03-22 17:42:49,249 [ERROR] [__main__] Exception NameError: an integer is required
Traceback (most recent call last):
File "/home/DoorPI/doorpi/main.py", line 160, in main_as_application
try: doorpi.DoorPi(parsed_arguments).run()
File "/home/DoorPI/doorpi/doorpi.py", line 198, in run
if not self.__prepared: self.prepare(self.__parsed_arguments)
File "/home/DoorPI/doorpi/doorpi.py", line 105, in prepare
self.__keyboard = load_keyboard()
File "/home/DoorPI/doorpi/keyboard/KeyboardInterface.py", line 20, in load_keyboard
return KeyboardHandler(config_keyboards)
File "/home/DoorPI/doorpi/keyboard/KeyboardInterface.py", line 101, in __init__
self.__keyboards[keyboard_name] = load_single_keyboard(keyboard_name)
File "/home/DoorPI/doorpi/keyboard/KeyboardInterface.py", line 51, in load_single_keyboard
conf_post = conf_post
File "/home/DoorPI/doorpi/keyboard/from_gpio.py", line 13, in get
def get(**kwargs): return GPIO(**kwargs)
File "/home/DoorPI/doorpi/keyboard/from_gpio.py", line 28, in __init__
RPiGPIO.setup(self._InputPins, RPiGPIO.IN, pull_up_down = RPiGPIO.PUD_DOWN)
TypeError: an integer is required
Exception NotImplementedError: NotImplementedError('Subclasses should implement this!',) in <bound method GPIO.destroy of <keyboard.from_gpio.GPIO object at 0x752070>> ignored
Alles anzeigen
Schaltung:
https://drive.google.com/file/d/0B4P3Pp…iew?usp=sharing
Hat jemand eine Idee?
//EDIT//
---------------------------------------------
Nach dem Ich die Schaltung geändert habe:
https://drive.google.com/file/d/0B4P3Pp…iew?usp=sharing
und in der Datei from_gpio.py
folgende Zeilen:
RPiGPIO.setup(self._InputPins, RPiGPIO.IN, pull_up_down = RPiGPIO.PUD_DOWN)
...
RPiGPIO.setup(self._OutputPins, RPiGPIO.OUT)
durch diese ersetzt habe:
RPiGPIO.setup(11, RPiGPIO.IN, pull_up_down = RPiGPIO.PUD_DOWN)
...
RPiGPIO.setup(7, RPiGPIO.OUT)
hat alles funktioniert und jetzt blinkt die LED.
Kann es sein, dass GPIO.setup mit dem Array nicht funktioniert bzw. nicht unterstützt? Aber warum funktioniert es bei den anderen?