Commit a219b691 authored by Christian Wander's avatar Christian Wander
Browse files

renaming stuff

parent c8832518
from pixelframe import app
from flask import render_template
import pixelframe.threadfun as t
import pixelframe.pixel_service as pixel_service
@app.route('/')
def main_page():
......@@ -13,11 +13,11 @@ def hello_method():
return render_template('hello.html', name="foo")
@app.route('/start')
def threadfun():
t.doit()
def start_pixels():
pixel_service.doit()
return "Started work."
@app.route('/stop')
def threadstop():
t.stopit()
return "Stopped work"
\ No newline at end of file
def stop_pixels():
pixel_service.stopit()
return "Stopped work"
......@@ -37,7 +37,7 @@ def display_pixels():
sender[universe].destination = "192.168.178.37"
while running is True:
print(f'>> Doing some work within thread, running={running} ')
# print(f'>> Doing some work within thread, running={running} ')
pic = blink.Thing(file="data/cyber-12x12.png")
sender[universe].dmx_data = pic.snake_tuple()
time.sleep(2)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment