Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Capteur autonome Penn Avel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pronto 3
Capteur autonome Penn Avel
Commits
6f02e358
Commit
6f02e358
authored
3 weeks ago
by
CARNEIRO--GILLET Alexandre
Browse files
Options
Downloads
Patches
Plain Diff
viré le display dans LoRaReceiver et Sender
parent
bff7b8f8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GW-custom/uPyLoRaWAN/examples/LoRaReceiver.py
+1
-1
1 addition, 1 deletion
GW-custom/uPyLoRaWAN/examples/LoRaReceiver.py
GW-custom/uPyLoRaWAN/examples/LoRaSender.py
+4
-2
4 additions, 2 deletions
GW-custom/uPyLoRaWAN/examples/LoRaSender.py
with
5 additions
and
3 deletions
GW-custom/uPyLoRaWAN/examples/LoRaReceiver.py
+
1
−
1
View file @
6f02e358
...
...
@@ -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
():
...
...
This diff is collapsed.
Click to expand it.
GW-custom/uPyLoRaWAN/examples/LoRaSender.py
+
4
−
2
View file @
6f02e358
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment