kopia lustrzana https://github.com/pimoroni/pimoroni-pico
compatibility changes for use with microdot 2.x
rodzic
2eb97532ea
commit
53e5864101
|
@ -1,6 +1,5 @@
|
|||
import os
|
||||
from microdot_asyncio import Microdot, send_file
|
||||
from microdot_asyncio_websocket import with_websocket
|
||||
from microdot import Microdot, send_file, websocket
|
||||
from phew import connect_to_wifi
|
||||
from stellar import StellarUnicorn
|
||||
from picographics import PicoGraphics, DISPLAY_STELLAR_UNICORN as DISPLAY
|
||||
|
@ -75,7 +74,7 @@ def flood_fill(x, y, r, g, b):
|
|||
|
||||
|
||||
@server.route('/paint')
|
||||
@with_websocket
|
||||
@websocket.with_websocket
|
||||
async def echo(request, ws):
|
||||
while True:
|
||||
data = await ws.receive()
|
||||
|
|
Ładowanie…
Reference in New Issue