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

Skip to content

Commit 00f5a04

Browse files
Another README code-block clean-up.
1 parent 5e37dec commit 00f5a04

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Objecive
1818
The aim is to enable LoRa / LoRaWAN capability on MicroPython ESP32 builds, using only minimal (and where possible) native MicroPython libraries. By in large the code resembles the original, but where applicable, libraries and syntax has been adapted for MicroPython.
1919

2020
Being tested on
21-
============
21+
===============
2222

2323
The project is currently being tested in a limited capacity using:
2424

@@ -32,11 +32,13 @@ Further information on CircuitPython can be found here:
3232
https://learn.adafruit.com/using-lorawan-and-the-things-network-with-circuitpython/overview
3333

3434
Usage example
35-
============
35+
=============
3636

3737
Note that *DEVADDR*, *NWKEY* and *APP* are shown against your device in the TTN console (if ABP has been configured).
3838

3939
SX1276 module requires a number of standard SPI pins (CS, SCK, MOSI and MISO), as well as IRQ and RST.
40+
41+
.. code-block:: python
4042
4143
import utime
4244
from ulora import TTN, uLoRa
@@ -53,4 +55,4 @@ SX1276 module requires a number of standard SPI pins (CS, SCK, MOSI and MISO), a
5355
# data is a bytearray
5456
lora.send_data(data, len(data), lora.frame_counter)
5557
56-
Note that, throughout, the region (and therefore frequencies) defaults to "EU" unless explicitly specified.
58+
Note that, throughout, the region (and therefore frequencies) defaults to "EU" unless explicitly specified.

0 commit comments

Comments
 (0)