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
3b2d1679
Commit
3b2d1679
authored
3 weeks ago
by
CARNEIRO--GILLET Alexandre
Browse files
Options
Downloads
Patches
Plain Diff
tests pylora, ça a l'air de marcher
parent
b7d493ee
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
GW-custom/ESP32_GENERIC-20241129-v1.24.1.bin
+0
-0
0 additions, 0 deletions
GW-custom/ESP32_GENERIC-20241129-v1.24.1.bin
GW-custom/PyLoRa/pymakr.conf
+23
-0
23 additions, 0 deletions
GW-custom/PyLoRa/pymakr.conf
GW-custom/uPyLoRaWAN/main.py
+15
-3
15 additions, 3 deletions
GW-custom/uPyLoRaWAN/main.py
with
38 additions
and
3 deletions
GW-custom/ESP32_GENERIC-20241129-v1.24.1.bin
0 → 100644
+
0
−
0
View file @
3b2d1679
File added
This diff is collapsed.
Click to expand it.
GW-custom/PyLoRa/pymakr.conf
0 → 100644
+
23
−
0
View file @
3b2d1679
{
"address"
:
"COM6"
,
"username"
:
"micro"
,
"password"
:
"python"
,
"open_on_start"
:
true
,
"safe_boot_on_upload"
:
true
,
"sync_file_types"
:
"py"
,
"py_ignore"
: [
"pymakr.conf"
,
"dev-requirements.txt"
,
".vscode"
,
"LICENSE"
,
".gitignore"
,
".git"
,
"project.pymakr"
,
"env"
,
"venv"
,
".python-version"
,
".micropy/"
,
"micropy.json"
],
"fast_upload"
:
false
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
GW-custom/uPyLoRaWAN/main.py
+
15
−
3
View file @
3b2d1679
#import LoRaDuplexCallback
#import LoRaPingPong
#import LoRaSender
from
examples
import
LoRaSender
from
examples
import
LoRaReceiver
import
_thread
import
time
from
config
import
*
from
machine
import
Pin
,
SPI
from
examples
import
LoRaReceiver
,
LoRaSender
from
machine
import
SPI
,
Pin
from
sx127x
import
SX127x
device_spi
=
SPI
(
baudrate
=
10000000
,
...
...
@@ -19,6 +20,17 @@ lora = SX127x(device_spi, pins=device_config, parameters=lora_parameters)
#example = 'sender'
example
=
'
receiver
'
led
=
Pin
(
2
,
Pin
.
OUT
)
# Assuming GPIO2 is used for the LED
def
blink_led
():
led
.
on
()
time
.
sleep
(
0.5
)
led
.
off
()
time
.
sleep
(
0.5
)
# Start a thread to blink the LED
_thread
.
start_new_thread
(
lambda
:
[
blink_led
()
for
_
in
iter
(
int
,
1
)],
())
if
__name__
==
'
__main__
'
:
if
example
==
'
sender
'
:
LoRaSender
.
send
(
lora
)
...
...
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