Hello_World_RadioLib_Heltec V3_SX1262
1.0.0
Hello World -Beispielcode für das neue Heltec WiFi Lora 32 (V3) -Board mit Lora SX1262 Chip
Ich benutze, wie metioniert, das Heltec WiFi Lora 32 (V3) und VSC mit dem Plattformio -Plugin. Meine Platformio -Konfiguration sieht so aus und kann sie gefunden werden.
[env:esp32dev]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
lib_deps =
olikraus/U8g2@^2.34.13
jgromes/RadioLib@^5.6.0 HINWEIS: Ich benutze keine Heltec-Karte, wie Sie hier sehen können ( board = esp32-s3-devkitc-1 ) und aufgrund dessen habe ich pins_arduino.h in Plattform in platformiopackagesframework-arduinoespressif32variantsheltec_WIFI_LoRa_32_V3 nicht verlassen.
lora_nss: 8 // same as cs
lora_rst: 12 // same as nrst
dio1: 14 // same as irq, first interrupt/GPIO
lora_busy: 13 // same as gpio Pin, second interrupt/GPIO
lora_sck: 9
lora_miso: 11
lora_mosi: 10 oled_scl: 18
oled_sda: 17
oled_rst: 21
// new u8g2 library
U8G2_SSD1306_128X64_NONAME_1_SW_I2C u8g2(U8G2_R0, /* clock=*/18, /* data=*/17, /* reset=*/21);
// old u8x8 library
U8X8_SSD1306_128X64_NONAME_SW_I2C u8x8(scl, sda, rstOlcd);
MOSI: 11
MISO: 13
SCK: 12
SS: 10
SX1262 has the following connections:
NSS pin: 10 (cs Pin)
DIO1 pin: 2 (irq Pin)
NRST pin: 3 (rst pin)
BUSY pin: 9 (gpio Pin)
SX1262 radio = new Module(10, 2, 3, 9);
Module(cs, irq, rst, gpio)
HMU Wenn Sie Fragen haben, kann ich vielleicht helfen (::