mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2025-12-06 07:42:00 +01:00
use official pin definitions
This commit is contained in:
parent
ea1c41a42d
commit
a1a227f016
|
|
@ -8,10 +8,7 @@
|
||||||
; Please visit documentation for the other options and examples
|
; Please visit documentation for the other options and examples
|
||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[env:heltec_wifi_lora_32_V2]
|
[env]
|
||||||
platform = espressif32
|
|
||||||
board = heltec_wifi_lora_32_V2
|
|
||||||
framework = arduino
|
|
||||||
lib_ldf_mode = deep+
|
lib_ldf_mode = deep+
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
lib_deps =
|
lib_deps =
|
||||||
|
|
@ -21,3 +18,13 @@ lib_deps =
|
||||||
APRS-Decoder-Lib
|
APRS-Decoder-Lib
|
||||||
NTPClient
|
NTPClient
|
||||||
APRS-IS-Lib
|
APRS-IS-Lib
|
||||||
|
|
||||||
|
[env:heltec_wifi_lora_32]
|
||||||
|
platform = espressif32
|
||||||
|
board = heltec_wifi_lora_32
|
||||||
|
framework = arduino
|
||||||
|
|
||||||
|
[env:heltec_wifi_lora_32_V2]
|
||||||
|
platform = espressif32
|
||||||
|
board = heltec_wifi_lora_32_V2
|
||||||
|
framework = arduino
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,7 @@ void setup_lora()
|
||||||
{
|
{
|
||||||
Serial.println("[INFO] Set SPI pins!");
|
Serial.println("[INFO] Set SPI pins!");
|
||||||
SPI.begin(SCK, MISO, MOSI, SS);
|
SPI.begin(SCK, MISO, MOSI, SS);
|
||||||
LoRa.setPins(SS, RST, DIO0);
|
LoRa.setPins(SS, RST_LoRa, DIO0);
|
||||||
Serial.println("[INFO] Set LoRa pins!");
|
Serial.println("[INFO] Set LoRa pins!");
|
||||||
|
|
||||||
long freq = 433775000;
|
long freq = 433775000;
|
||||||
|
|
|
||||||
|
|
@ -5,22 +5,16 @@
|
||||||
|
|
||||||
#include "display.h"
|
#include "display.h"
|
||||||
|
|
||||||
#define OLED_SDA 4
|
Adafruit_SSD1306 display(DISPLAY_WIDTH, DISPLAY_HEIGHT, &Wire, RST_OLED);
|
||||||
#define OLED_SCL 15
|
|
||||||
#define OLED_RST 16
|
|
||||||
#define SCREEN_WIDTH 128 // OLED display width, in pixels
|
|
||||||
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
|
|
||||||
|
|
||||||
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RST);
|
|
||||||
|
|
||||||
void setup_display()
|
void setup_display()
|
||||||
{
|
{
|
||||||
pinMode(OLED_RST, OUTPUT);
|
pinMode(RST_OLED, OUTPUT);
|
||||||
digitalWrite(OLED_RST, LOW);
|
digitalWrite(RST_OLED, LOW);
|
||||||
delay(20);
|
delay(20);
|
||||||
digitalWrite(OLED_RST, HIGH);
|
digitalWrite(RST_OLED, HIGH);
|
||||||
|
|
||||||
Wire.begin(OLED_SDA, OLED_SCL);
|
Wire.begin(SDA_OLED, SCL_OLED);
|
||||||
if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3c, false, false))
|
if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3c, false, false))
|
||||||
{
|
{
|
||||||
Serial.println("SSD1306 allocation failed");
|
Serial.println("SSD1306 allocation failed");
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,6 @@
|
||||||
//#define SERVER "euro.aprs2.net"
|
//#define SERVER "euro.aprs2.net"
|
||||||
#define PORT 14580
|
#define PORT 14580
|
||||||
|
|
||||||
// LoRa Pins:
|
|
||||||
#define SCK 5
|
|
||||||
#define MISO 19
|
|
||||||
#define MOSI 27
|
|
||||||
#define SS 18
|
|
||||||
#define RST 14
|
|
||||||
#define DIO0 26
|
|
||||||
|
|
||||||
#define BROADCAST_TIMEOUT 15
|
#define BROADCAST_TIMEOUT 15
|
||||||
#define BROADCAST_MESSAGE "OE5BPA-10>APRS:=4819.82NI01418.68E&LoRa IGATE (test RX mode), Info: github.com/peterus/LoRa_APRS_iGate"
|
#define BROADCAST_MESSAGE "OE5BPA-10>APRS:=4819.82NI01418.68E&LoRa IGATE (test RX mode), Info: github.com/peterus/LoRa_APRS_iGate"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue