Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e37dec

Browse files
Attempt to fix codeblock in README.
1 parent b5db5ea commit 5e37dec

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

README.rst

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,19 @@ Note that *DEVADDR*, *NWKEY* and *APP* are shown against your device in the TTN
3838

3939
SX1276 module requires a number of standard SPI pins (CS, SCK, MOSI and MISO), as well as IRQ and RST.
4040

41-
```
42-
import utime
43-
from ulora import TTN, uLoRa
44-
45-
TTN_CONFIG = TTN(DEVADDR, NWKEY, APP, country="EU")
46-
lora = uLoRa(
47-
LORA_CS,
48-
LORA_SCK,
49-
LORA_MOSI,
50-
LORA_MISO,
51-
LORA_IRQ,
52-
LORA_RST,
53-
TTN_CONFIG
54-
)
55-
# data is a bytearray
56-
lora.send_data(data, len(data), lora.frame_counter)
57-
```
41+
import utime
42+
from ulora import TTN, uLoRa
43+
TTN_CONFIG = TTN(DEVADDR, NWKEY, APP, country="EU")
44+
lora = uLoRa(
45+
LORA_CS,
46+
LORA_SCK,
47+
LORA_MOSI,
48+
LORA_MISO,
49+
LORA_IRQ,
50+
LORA_RST,
51+
TTN_CONFIG
52+
)
53+
# data is a bytearray
54+
lora.send_data(data, len(data), lora.frame_counter)
5855

5956
Note that, throughout, the region (and therefore frequencies) defaults to "EU" unless explicitly specified.

0 commit comments

Comments
 (0)