Skip to content

Commit 53e5864

Browse files
committed
compatibility changes for use with microdot 2.x
1 parent 2eb9753 commit 53e5864

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

micropython/examples/stellar_unicorn/stellar_paint/stellar_paint.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import os
2-
from microdot_asyncio import Microdot, send_file
3-
from microdot_asyncio_websocket import with_websocket
2+
from microdot import Microdot, send_file, websocket
43
from phew import connect_to_wifi
54
from stellar import StellarUnicorn
65
from picographics import PicoGraphics, DISPLAY_STELLAR_UNICORN as DISPLAY
@@ -75,7 +74,7 @@ def fill(x, y, c):
7574

7675

7776
@server.route('/paint')
78-
@with_websocket
77+
@websocket.with_websocket
7978
async def echo(request, ws):
8079
while True:
8180
data = await ws.receive()

0 commit comments

Comments
 (0)