Ich versuche über folgenden Code:
Code: Alles auswählen
proc = Process(target=theaterChaseRainbow, args=(parameters,))
proc.daemon = True
proc.start()
Code: Alles auswählen
def theaterChaseRainbow(config):
if(not Settings.POWER_STRIP and int(Settings.CONFIG.get('Relai', 'GPIO'))> 0):
GPIO.output(int(Settings.CONFIG.get('Relai', 'GPIO')), GPIO.HIGH) # an
Settings.POWER_STRIP = True
wait_ms=50
while 1:
for j in range(256):
for q in range(3):
for i in range(0, Settings.STRIP.numPixels(), 3):
Settings.STRIP.setPixelColor(i+q, wheel((i+j) % 255))
Settings.STRIP.show()
time.sleep(wait_ms/1000.0)
for i in range(0, Settings.STRIP.numPixels(), 3):
Settings.STRIP.setPixelColor(i+q, 0)
Code: Alles auswählen
('Unexpected error:', <type 'exceptions.TypeError'>, TypeError('theaterChaseRainbow() takes exactly 1 argument (0 given)',))
Ich verwende die Python Version 2.7.9.
Danke für euere Hilfe.
mfg: Acer