add lib and config lora

This commit is contained in:
Clement 2023-06-26 17:24:06 +02:00
parent b73bc67c8e
commit f92d19b61f
2 changed files with 19 additions and 3 deletions

View File

@ -14,6 +14,20 @@ build_flags =
-D MONITOR_SPEED=${config.monitor_speed} -D MONITOR_SPEED=${config.monitor_speed}
; DO NOT TOUCH --- END ; 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\" -D EXAMPLE_STRING=\"Pouet\"

View File

@ -30,8 +30,8 @@ build_flags = ${config.build_flags} ${secrets.build_flags}
extra_scripts = pre:scripts/get_additionnal_envs.py extra_scripts = pre:scripts/get_additionnal_envs.py
; Device Settings (make sure to fix versions where possible!) ; Device Settings (make sure to fix versions where possible!)
platform = espressif32@4.2.0 platform = espressif32
board = esp32dev board = ttgo-lora32-v1
framework = arduino framework = arduino
; Monitoring settings ; Monitoring settings
@ -52,6 +52,8 @@ upload_speed = 921600
lib_deps = lib_deps =
; example: ; example:
; erropix/ESP32 AnalogWrite@0.2 ; erropix/ESP32 AnalogWrite@0.2
sandeepmistry/LoRa@^0.8.0 ;LoRa lib
olikraus/U8g2@^2.34.22 ;Oled Lib
; Checker settings ; Checker settings
check_tool = clangtidy, cppcheck check_tool = clangtidy, cppcheck