-
-
Notifications
You must be signed in to change notification settings - Fork 7
bump version to 1.0.1 add new board #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
95fb024
670be27
fdf8e5b
30ca375
e5a398c
a10e21b
1d98f92
55fb05d
4c09fd9
058f4e8
16d68a0
9df0f5c
04a100f
ed4d0d2
1a41560
59ecf10
9cc29ca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,14 +51,15 @@ def create_radio(radio_type: str = "waveshare") -> LoRaRadio: | |
| "reset_pin": 18, | ||
| "busy_pin": 20, | ||
| "irq_pin": 16, | ||
| "txen_pin": 6, # GPIO 6 for TX enable | ||
| "rxen_pin": -1, | ||
| "txen_pin": 13, # GPIO 13 for TX enable | ||
| "rxen_pin": 12, | ||
|
Comment on lines
+54
to
+55
|
||
| "frequency": int(869.525 * 1000000), # EU: 869.525 MHz | ||
| "tx_power": 22, | ||
| "spreading_factor": 11, | ||
| "bandwidth": int(250 * 1000), | ||
| "coding_rate": 5, | ||
| "preamble_length": 17, | ||
| "is_waveshare": True, | ||
| }, | ||
| "uconsole": { | ||
| "bus_id": 1, # SPI1 | ||
|
|
@@ -76,11 +77,27 @@ def create_radio(radio_type: str = "waveshare") -> LoRaRadio: | |
| "coding_rate": 5, | ||
| "preamble_length": 17, | ||
| }, | ||
| "meshadv-mini": { | ||
| "bus_id": 0, | ||
| "cs_id": 0, | ||
| "cs_pin": 8, | ||
| "reset_pin": 24, | ||
| "busy_pin": 20, | ||
| "irq_pin": 16, | ||
| "txen_pin": -1, | ||
| "rxen_pin": 12, | ||
| "frequency": int(910.525 * 1000000), # US: 910.525 MHz | ||
| "tx_power": 22, | ||
| "spreading_factor": 7, | ||
| "bandwidth": int(62.5 * 1000), | ||
| "coding_rate": 5, | ||
| "preamble_length": 17, | ||
| }, | ||
| } | ||
|
|
||
| if radio_type not in configs: | ||
| raise ValueError( | ||
| f"Unknown radio type: {radio_type}. Use 'waveshare' or 'uconsole'" | ||
| f"Unknown radio type: {radio_type}. Use 'waveshare' 'meshadv-mini' or 'uconsole'" | ||
| ) | ||
|
|
||
| radio_kwargs = configs[radio_type] | ||
|
|
@@ -119,9 +136,7 @@ def create_mesh_node( | |
| # Create a local identity (this generates a new keypair) | ||
| logger.debug("Creating LocalIdentity...") | ||
| identity = LocalIdentity() | ||
| logger.info( | ||
| f"Created identity with public key: {identity.get_public_key().hex()[:16]}..." | ||
| ) | ||
| logger.info(f"Created identity with public key: {identity.get_public_key().hex()[:16]}...") | ||
|
|
||
| # Create the SX1262 radio | ||
| logger.debug("Creating radio...") | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
|
||
| [project] | ||
| name = "pymc_core" | ||
| version = "1.0.0" | ||
| version = "1.0.1" | ||
| authors = [ | ||
| {name = "Lloyd Newton", email = "[email protected]"}, | ||
| ] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.