generated from TDD-Templates/cmake_cpputest_template
Compare commits
2 commits
6aa800ddc2
...
ad48a00b03
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad48a00b03 | ||
|
|
b054ca3821 |
2 changed files with 20 additions and 1 deletions
|
|
@ -8,6 +8,8 @@
|
|||
#include <FastLED.h> // Library to control the LED ring (WS2812)
|
||||
#include <TinyGPS++.h> // Library to handle GPS data
|
||||
#include <SoftwareSerial.h> // Software serial for GPS communication
|
||||
#include <RH_RF95.h> //
|
||||
|
||||
|
||||
// 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
|
||||
|
|
|
|||
12
README.md
12
README.md
|
|
@ -15,7 +15,14 @@
|
|||
|
||||
### Main Project
|
||||
|
||||
**To be added**
|
||||
**Using Arduino IDE**
|
||||
|
||||
1. Install the Arduino IDE if not installed.
|
||||
2. Using the library manager in the IDE install the dependencies.
|
||||
3. Connect the micro-controller
|
||||
4. Select your development boards version and connection under the drop-down.
|
||||
5. Click the Upload button to flash the program.
|
||||
|
||||
|
||||
### Tests
|
||||
|
||||
|
|
@ -73,4 +80,7 @@ tree -L 1
|
|||
|
||||
6 directories, 7 files
|
||||
```
|
||||
## Project Dependencies
|
||||
|
||||
- RadioHead RFM9x Library
|
||||
- TinyGPS++
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue