From 80804c7bdc7dce184b8b965d2fa90279b6bbc7cb Mon Sep 17 00:00:00 2001 From: Erwann Date: Tue, 7 Nov 2023 15:24:23 +0100 Subject: [PATCH] update readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7734645..82d193c 100755 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ First import the modules ```python from SX127x.LoRa import * from SX127x.board_config import BOARD +from SX127x.constants import * ``` then set up the board GPIOs ```python @@ -76,7 +77,7 @@ lora.set_mode(MODE.STDBY) ``` Registers are queried like so: ```python -print(lora.version()) # this prints the sx127x chip version +print(lora.get_version()) # this prints the sx127x chip version print(lora.get_freq()) # this prints the frequency setting ``` and setting registers is easy, too