25 lines
444 B
Python
25 lines
444 B
Python
from sx1262 import SX1262
|
|
from _sx126x import *
|
|
|
|
from connection import Connection
|
|
|
|
import time
|
|
import crypt_random
|
|
import uasyncio as asyncio
|
|
|
|
BLUETOOTH_ENABLED = False
|
|
|
|
|
|
def main():
|
|
bluetooth_handler = None
|
|
if BLUETOOTH_ENABLED:
|
|
from bluetooth_handler import BluetoothHandler
|
|
bluetooth_handler = BluetoothHandler()
|
|
|
|
conn = Connection()
|
|
asyncio.run(conn.start())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|