15 lines
226 B
Python
15 lines
226 B
Python
|
import machine
|
||
|
|
||
|
import io_state
|
||
|
import access_point
|
||
|
from webserver import accept_connection
|
||
|
|
||
|
|
||
|
try:
|
||
|
while True:
|
||
|
accept_connection()
|
||
|
io_state.state.update()
|
||
|
except KeyboardInterrupt:
|
||
|
machine.reset()
|
||
|
|