parent
186eed295b
commit
a58565324c
4
main.py
4
main.py
|
@ -1,6 +1,8 @@
|
|||
import time
|
||||
import os
|
||||
from datetime import datetime
|
||||
|
||||
from requests import request
|
||||
try:
|
||||
from rpi_ws281x import *
|
||||
import RPi.GPIO as GPIO
|
||||
|
@ -115,7 +117,7 @@ if __name__ == '__main__':
|
|||
|
||||
@app.route('/mode', methods=['GET'])
|
||||
def mode():
|
||||
args = request.args
|
||||
args = request.args()
|
||||
mode = args.get('mode')
|
||||
r = args.get('r')
|
||||
g = args.get('g')
|
||||
|
|
Loading…
Reference in New Issue