From 7e1f994816b7baa71167fd9a04421cdf9cb37424 Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Fri, 4 Dec 2015 16:41:25 -0600 Subject: give the GPS lib a handle to the LED controller so it can blink LED2 when not locked --- main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'main.cpp') 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); -- cgit v1.2.3