Update code
But nothing chnage
(however i just lern how to use "" twice Thanks (\" did`t know\" )
import os
import time
White = "/root/Downloads/ws2812-spi/ws2812.py -c \"[[255,255,255]]\" -n 1"
Green = "/root/Downloads/ws2812-spi/ws2812.py -c \"[[0,255,0]]\" -n 1"
Blue = "/root/Downloads/ws2812-spi/ws2812.py -c \"[[0,0,255]]\" -n 1"
Red = "/root/Downloads/ws2812-spi/ws2812.py -c \"[[255,0,0]]\" -n 1"
Off = "/root/Downloads/ws2812-spi/ws2812.py -c \"[[0,0,0]]\" -n 1"
y = 0.5
while True:
os.system(White)
print("white")
time.sleep(y)
os.system(Off)
print("sleep")
time.sleep(y)
os.system(Blue)
time.sleep(y)
os.system(Off)
time.sleep(y)
os.system(Green)
time.sleep(y)
os.system(Off)
time.sleep(y)