-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/SylvainMontagny/LoRaE5 into…
… main
- Loading branch information
Showing
12 changed files
with
418 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#ifndef CONFIG_BOARD_H | ||
#define CONFIG_BOARD_H | ||
|
||
////////////////////////////////////////////// | ||
// If you use an ARDUINO or ESP32 board | ||
////////////////////////////////////////////// | ||
#if defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_SAM) || defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_ESP32) || defined(ARDUINO_WIO_TERMINAL) | ||
#define Debug_Serial Serial // Select the right SerialX for Debug | ||
|
||
// Arduino's Serial Documentation : https://www.arduino.cc/reference/en/language/functions/communication/serial/ | ||
// ESP32 Documentation | ||
#define LoRa_Serial Serial1 // Select the right SerialX for the LoRaE5 connection | ||
|
||
////////////////////////////////////////////// | ||
// If you use a STM32 NUCLEO board | ||
////////////////////////////////////////////// | ||
#elif defined(ARDUINO_ARCH_STM32) | ||
#define RX_PIN_DEBUG PA3 // Select UART RX Pin for Debug | ||
#define TX_PIN_DEBUG PA2 // Select UART TX Pin for Debug | ||
HardwareSerial Debug_Serial(RX_PIN_DEBUG, TX_PIN_DEBUG); | ||
|
||
#define RX_PIN_LORA PA1 // Select UART RX Pin for the LoRaE5 connection | ||
#define TX_PIN_LORA PA0 // Select UART TX Pin for the LoRaE5 connection | ||
HardwareSerial LoRa_Serial(RX_PIN_LORA, TX_PIN_LORA); | ||
|
||
|
||
////////////////////////////////////////////// | ||
// /!\ Your card has never been tested yet ! | ||
// Please let us know if you find the PIN configuration of your board | ||
// So we can add it to the next version of this code | ||
////////////////////////////////////////////// | ||
|
||
#else | ||
#warning "Your board has never been tested with this lib" | ||
#warning "Select the right Serial for Debug and LoRaE5 connection in config_board.h" | ||
|
||
#define Debug_Serial Serial | ||
#define LoRa_Serial Serial1 | ||
|
||
#endif | ||
|
||
#endif //CONFIG_BOARD_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#ifndef CONFIG_BOARD_H | ||
#define CONFIG_BOARD_H | ||
|
||
////////////////////////////////////////////// | ||
// If you use an ARDUINO or ESP32 board | ||
////////////////////////////////////////////// | ||
#if defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_SAM) || defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_ESP32) || defined(ARDUINO_WIO_TERMINAL) | ||
#define Debug_Serial Serial // Select the right SerialX for Debug | ||
|
||
// Arduino's Serial Documentation : https://www.arduino.cc/reference/en/language/functions/communication/serial/ | ||
// ESP32 Documentation | ||
#define LoRa_Serial Serial1 // Select the right SerialX for the LoRaE5 connection | ||
|
||
////////////////////////////////////////////// | ||
// If you use a STM32 NUCLEO board | ||
////////////////////////////////////////////// | ||
#elif defined(ARDUINO_ARCH_STM32) | ||
#define RX_PIN_DEBUG PA3 // Select UART RX Pin for Debug | ||
#define TX_PIN_DEBUG PA2 // Select UART TX Pin for Debug | ||
HardwareSerial Debug_Serial(RX_PIN_DEBUG, TX_PIN_DEBUG); | ||
|
||
#define RX_PIN_LORA PA1 // Select UART RX Pin for the LoRaE5 connection | ||
#define TX_PIN_LORA PA0 // Select UART TX Pin for the LoRaE5 connection | ||
HardwareSerial LoRa_Serial(RX_PIN_LORA, TX_PIN_LORA); | ||
|
||
|
||
////////////////////////////////////////////// | ||
// /!\ Your card has never been tested yet ! | ||
// Please let us know if you find the PIN configuration of your board | ||
// So we can add it to the next version of this code | ||
////////////////////////////////////////////// | ||
|
||
#else | ||
#warning "Your board has never been tested with this lib" | ||
#warning "Select the right Serial for Debug and LoRaE5 connection in config_board.h" | ||
|
||
#define Debug_Serial Serial | ||
#define LoRa_Serial Serial1 | ||
|
||
#endif | ||
|
||
#endif //CONFIG_BOARD_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#ifndef CONFIG_BOARD_H | ||
#define CONFIG_BOARD_H | ||
|
||
////////////////////////////////////////////// | ||
// If you use an ARDUINO or ESP32 board | ||
////////////////////////////////////////////// | ||
#if defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_SAM) || defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_ESP32) || defined(ARDUINO_WIO_TERMINAL) | ||
#define Debug_Serial Serial // Select the right SerialX for Debug | ||
|
||
// Arduino's Serial Documentation : https://www.arduino.cc/reference/en/language/functions/communication/serial/ | ||
// ESP32 Documentation | ||
#define LoRa_Serial Serial1 // Select the right SerialX for the LoRaE5 connection | ||
|
||
////////////////////////////////////////////// | ||
// If you use a STM32 NUCLEO board | ||
////////////////////////////////////////////// | ||
#elif defined(ARDUINO_ARCH_STM32) | ||
#define RX_PIN_DEBUG PA3 // Select UART RX Pin for Debug | ||
#define TX_PIN_DEBUG PA2 // Select UART TX Pin for Debug | ||
HardwareSerial Debug_Serial(RX_PIN_DEBUG, TX_PIN_DEBUG); | ||
|
||
#define RX_PIN_LORA PA1 // Select UART RX Pin for the LoRaE5 connection | ||
#define TX_PIN_LORA PA0 // Select UART TX Pin for the LoRaE5 connection | ||
HardwareSerial LoRa_Serial(RX_PIN_LORA, TX_PIN_LORA); | ||
|
||
|
||
////////////////////////////////////////////// | ||
// /!\ Your card has never been tested yet ! | ||
// Please let us know if you find the PIN configuration of your board | ||
// So we can add it to the next version of this code | ||
////////////////////////////////////////////// | ||
|
||
#else | ||
#warning "Your board has never been tested with this lib" | ||
#warning "Select the right Serial for Debug and LoRaE5 connection in config_board.h" | ||
|
||
#define Debug_Serial Serial | ||
#define LoRa_Serial Serial1 | ||
|
||
#endif | ||
|
||
#endif //CONFIG_BOARD_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#ifndef CONFIG_BOARD_H | ||
#define CONFIG_BOARD_H | ||
|
||
////////////////////////////////////////////// | ||
// If you use an ARDUINO or ESP32 board | ||
////////////////////////////////////////////// | ||
#if defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_SAM) || defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_ESP32) || defined(ARDUINO_WIO_TERMINAL) | ||
#define Debug_Serial Serial // Select the right SerialX for Debug | ||
|
||
// Arduino's Serial Documentation : https://www.arduino.cc/reference/en/language/functions/communication/serial/ | ||
// ESP32 Documentation | ||
#define LoRa_Serial Serial1 // Select the right SerialX for the LoRaE5 connection | ||
|
||
////////////////////////////////////////////// | ||
// If you use a STM32 NUCLEO board | ||
////////////////////////////////////////////// | ||
#elif defined(ARDUINO_ARCH_STM32) | ||
#define RX_PIN_DEBUG PA3 // Select UART RX Pin for Debug | ||
#define TX_PIN_DEBUG PA2 // Select UART TX Pin for Debug | ||
HardwareSerial Debug_Serial(RX_PIN_DEBUG, TX_PIN_DEBUG); | ||
|
||
#define RX_PIN_LORA PA1 // Select UART RX Pin for the LoRaE5 connection | ||
#define TX_PIN_LORA PA0 // Select UART TX Pin for the LoRaE5 connection | ||
HardwareSerial LoRa_Serial(RX_PIN_LORA, TX_PIN_LORA); | ||
|
||
|
||
////////////////////////////////////////////// | ||
// /!\ Your card has never been tested yet ! | ||
// Please let us know if you find the PIN configuration of your board | ||
// So we can add it to the next version of this code | ||
////////////////////////////////////////////// | ||
|
||
#else | ||
#warning "Your board has never been tested with this lib" | ||
#warning "Select the right Serial for Debug and LoRaE5 connection in config_board.h" | ||
|
||
#define Debug_Serial Serial | ||
#define LoRa_Serial Serial1 | ||
|
||
#endif | ||
|
||
#endif //CONFIG_BOARD_H |
Oops, something went wrong.