repl.it
@anonymous/

YawningWhitesmokeScreencast

Python

No description

fork
loading
Files
  • main.py
  • Packager files
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
import asyncio
from obniz import Obniz

async def onconnect(obniz):
    obniz.display.clear()
    obniz.display.print("Hello, World!")

obniz = Obniz('OBNIZ_ID_HERE')
obniz.onconnect = onconnect

asyncio.get_event_loop().run_forever()
?