summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2015-12-04 16:41:25 -0600
committerMike Fiore <mfiore@multitech.com>2015-12-04 16:41:25 -0600
commit7e1f994816b7baa71167fd9a04421cdf9cb37424 (patch)
tree39f5cc2c87e68545fcc79f88107e230097d4d1bb /main.cpp
parent590819c018c9a4c18d309230c6bcf37a88459f7b (diff)
downloadmtdot-box-evb-factory-firmware-7e1f994816b7baa71167fd9a04421cdf9cb37424.tar.gz
mtdot-box-evb-factory-firmware-7e1f994816b7baa71167fd9a04421cdf9cb37424.tar.bz2
mtdot-box-evb-factory-firmware-7e1f994816b7baa71167fd9a04421cdf9cb37424.zip
give the GPS lib a handle to the LED controller so it can blink LED2 when not locked
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/main.cpp b/main.cpp
index 7b7c7c4..5e96f16 100644
--- a/main.cpp
+++ b/main.cpp
@@ -68,17 +68,16 @@ int main() {
file_name = "SurveyData.txt";
lcd = new DOGS102(lcd_spi, lcd_spi_cs, lcd_cd);
+ // NCP5623B::LEDs 1 & 2 are the screen backlight - not used on default build
+ // NCP5623B::LED3 is EVB LED2
led_cont = new NCP5623B(led_i2c);
main_id = Thread::gettid();
buttons = new ButtonHandler(main_id);
dot = mDot::getInstance();
lora = new LoRaHandler(main_id);
- gps = new GPSPARSER(&gps_serial);
+ gps = new GPSPARSER(&gps_serial, led_cont);
- // NCP5623B::LEDs 1 & 2 are the screen backlight - not used on default build
- // NCP5623B::LED3 is EVB LED2
- led_cont->setPWM(NCP5623B::LED_3, 16);
led_cont->setLEDCurrent(16);
MTSLog::setLogLevel(MTSLog::TRACE_LEVEL);