17 lines
309 B
Python
Raw Normal View History

2024-01-30 20:04:56 +01:00
from machine import Pin
import src.slave as slave
import src.wireless as wireless
import src.data as data
wireless.espnow_setup()
if data.master:
# server has autostart in another _thread
import src.server as server
Pin(2, Pin.OUT).value(1)
else:
Pin(2, Pin.OUT).value(1)
slave.loop()