From ad48a00b03b53f0d3682bad2168a0da27ddf0c21 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Wed, 25 Sep 2024 11:14:12 -0700 Subject: [PATCH] Included the header for the radiohead library. Also added define statments for radio modules pins. --- LINX_SOFTWARE-COMMENTED.ino | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/LINX_SOFTWARE-COMMENTED.ino b/LINX_SOFTWARE-COMMENTED.ino index 0e3458c..9c4d4a9 100644 --- a/LINX_SOFTWARE-COMMENTED.ino +++ b/LINX_SOFTWARE-COMMENTED.ino @@ -8,6 +8,8 @@ #include // Library to control the LED ring (WS2812) #include // Library to handle GPS data #include // Software serial for GPS communication +#include // + // MAGNETOMETER (LIS2MDL) CONFIGURATION Adafruit_LIS2MDL lis2mdl = Adafruit_LIS2MDL(12345); // Create magnetometer object @@ -29,6 +31,13 @@ CRGB leds[NUM_LEDS]; // Array to hold LED colors SoftwareSerial gpsSerial(GPS_RX_PIN, GPS_TX_PIN); // Software serial for GPS TinyGPSPlus gps; // TinyGPS++ object to process GPS data +// Radio defines +#define RFM95_CS 8 +#define RFM95_INT 7 +#define RFM95_RST 4 +#define RF95_FREQ 915.0 + + // Variables static int prevHeading = -1; // Store previous heading to avoid frequent updates unsigned long lastUpdate = 0; // Time tracking for updates