From 6f02e3586916c9910296768fa4b476ec5c111c05 Mon Sep 17 00:00:00 2001 From: CARNEIRO--GILLET Alexandre <alexandre.carneiro-gillet@imt-atlantique.net> Date: Tue, 1 Apr 2025 09:23:53 +0200 Subject: [PATCH] =?UTF-8?q?vir=C3=A9=20le=20display=20dans=20LoRaReceiver?= =?UTF-8?q?=20et=20Sender?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GW-custom/uPyLoRaWAN/examples/LoRaReceiver.py | 2 +- GW-custom/uPyLoRaWAN/examples/LoRaSender.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/GW-custom/uPyLoRaWAN/examples/LoRaReceiver.py b/GW-custom/uPyLoRaWAN/examples/LoRaReceiver.py index 9f7d498..95e6eb0 100644 --- a/GW-custom/uPyLoRaWAN/examples/LoRaReceiver.py +++ b/GW-custom/uPyLoRaWAN/examples/LoRaReceiver.py @@ -3,7 +3,7 @@ from uPySensors.ssd1306_i2c import Display def receive(lora): print("LoRa Receiver") - display = Display() + # display = Display() while True: if lora.received_packet(): diff --git a/GW-custom/uPyLoRaWAN/examples/LoRaSender.py b/GW-custom/uPyLoRaWAN/examples/LoRaSender.py index 48ee5a6..8ce9301 100644 --- a/GW-custom/uPyLoRaWAN/examples/LoRaSender.py +++ b/GW-custom/uPyLoRaWAN/examples/LoRaSender.py @@ -1,15 +1,17 @@ from time import sleep + from uPySensors.ssd1306_i2c import Display + def send(lora): counter = 0 print("LoRa Sender") - display = Display() + # display = Display() while True: payload = 'Hello ({0})'.format(counter) #print("Sending packet: \n{}\n".format(payload)) - display.show_text_wrap("{0} RSSI: {1}".format(payload, lora.packet_rssi())) + # display.show_text_wrap("{0} RSSI: {1}".format(payload, lora.packet_rssi())) lora.println(payload) counter += 1 -- GitLab