Guest User

Untitled

a guest
Jun 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "NFC_Security.py", line 53, in <module>
  3.  
  4. LEDs.authorised()
  5. File "/home/pi/Garage_Parking/rpi_components/LEDs.py", line 13, in
  6. authorised
  7.  
  8. greenLed = LED(6) # Green LED lights up when the user is authorised
  9. File "/usr/lib/python2.7/dist-packages/gpiozero/devices.py", line 134, in
  10. __call__
  11. self = super(GPIOMeta, cls).__call__(*args, **kwargs)
  12.  
  13. File "/usr/lib/python2.7/dist-packages/gpiozero/output_devices.py", line
  14. 131, in __init__ super(DigitalOutputDevice, self).__init__(pin, active_high, initial_value)
  15.  
  16. File "/usr/lib/python2.7/dist-packages/gpiozero/output_devices.py", line 41, in __init__
  17. super(OutputDevice, self).__init__(pin)
  18.  
  19. File "/usr/lib/python2.7/dist-packages/gpiozero/mixins.py", line 69, in __init__
  20. super(SourceMixin, self).__init__(*args, **kwargs)
  21.  
  22. File "/usr/lib/python2.7/dist-packages/gpiozero/devices.py", line 381, in __init__
  23. pin = pin_factory(pin)
  24.  
  25. File "/usr/lib/python2.7/dist-packages/gpiozero/pins/rpigpio.py", line 82, in __new__
  26. GPIO.setmode(GPIO.BCM)
  27.  
  28. ValueError: A different mode has already been set!
  29. Exception AttributeError: "'LED' object has no attribute '_controller'" in <bound method LED.__del__ of <gpiozero.LED object closed>> ignored
Add Comment
Please, Sign In to add comment