From f92d19b61f00c2fe2f519e2e64b87d41cb03ad77 Mon Sep 17 00:00:00 2001 From: Clement Date: Mon, 26 Jun 2023 17:24:06 +0200 Subject: [PATCH] add lib and config lora --- IOT/receiver LoRa/config.ini | 16 +++++++++++++++- IOT/receiver LoRa/platformio.ini | 6 ++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/IOT/receiver LoRa/config.ini b/IOT/receiver LoRa/config.ini index 11e4023..7ba9ac2 100644 --- a/IOT/receiver LoRa/config.ini +++ b/IOT/receiver LoRa/config.ini @@ -14,6 +14,20 @@ build_flags = -D MONITOR_SPEED=${config.monitor_speed} ; DO NOT TOUCH --- END - -D EXAMPLE_NUMBER=69 + ; LoRa pinout + -D RADIO_MOSI_PIN=27 + -D RADIO_MISO_PIN=19 + -D RADIO_SCLK_PIN=5 + -D RADIO_CS_PIN=18 + -D RADIO_RST_PIN=14 + -D RADIO_DIO0_PIN=26 + + ;LoRa frequency + -D LoRa_frequency=433E6 + + ;Oled pin + -D I2C_SDA=21 + -D I2C_SCL=22 + -D EXAMPLE_STRING=\"Pouet\" diff --git a/IOT/receiver LoRa/platformio.ini b/IOT/receiver LoRa/platformio.ini index 6efbe50..0aa4ecc 100644 --- a/IOT/receiver LoRa/platformio.ini +++ b/IOT/receiver LoRa/platformio.ini @@ -30,8 +30,8 @@ build_flags = ${config.build_flags} ${secrets.build_flags} extra_scripts = pre:scripts/get_additionnal_envs.py ; Device Settings (make sure to fix versions where possible!) -platform = espressif32@4.2.0 -board = esp32dev +platform = espressif32 +board = ttgo-lora32-v1 framework = arduino ; Monitoring settings @@ -52,6 +52,8 @@ upload_speed = 921600 lib_deps = ; example: ; erropix/ESP32 AnalogWrite@0.2 + sandeepmistry/LoRa@^0.8.0 ;LoRa lib + olikraus/U8g2@^2.34.22 ;Oled Lib ; Checker settings check_tool = clangtidy, cppcheck