Jul-24-2018, 08:23 PM
hello i want use
python3 rgb.py colore modalita
but sys.argv[1] and sys.argv[2] not work.
my code
python3 rgb.py colore modalita
but sys.argv[1] and sys.argv[2] not work.
my code
import os, sys from gpiozero import RGBLED print ("Modalita:", sys.argv[2]) print ("Colore:", sys.argv[1]) # Pin R = 11 G = 13 B = 15 rgb = RGBLED(R,G,B,False)after this i want
rgb.color = (sys,argv[2])and
rgb.sys.argv[1]()example
rgb.color = (1,0,1) rgb.on()but i can't find correct sintax
