Skip to content
Snippets Groups Projects
Commit 6f02e358 authored by CARNEIRO--GILLET Alexandre's avatar CARNEIRO--GILLET Alexandre
Browse files

viré le display dans LoRaReceiver et Sender

parent bff7b8f8
No related branches found
No related tags found
No related merge requests found
......@@ -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():
......
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment