Lizzy project

Dependencies:   aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT

Files at this revision

API Documentation at this revision

Comitter:
dbartolovic
Date:
Wed Mar 14 08:48:26 2018 +0000
Parent:
6:55607d577a42
Child:
8:7ba4f82de9b6
Commit message:
Added small LED and buzzer test.

Changed in this revision

source/main.cpp Show annotated file Show diff for this revision Revisions of this file
source/main.h Show annotated file Show diff for this revision Revisions of this file
--- a/source/main.cpp	Tue Mar 13 15:41:35 2018 +0000
+++ b/source/main.cpp	Wed Mar 14 08:48:26 2018 +0000
@@ -134,16 +134,16 @@
             
         case 1:
             redLed = 1;
-            blueLed = 0;
+            greenLed = 0;
             break;
             
         case 2:
-            blueLed = 1;
-            greenLed = 0;
+            greenLed = 1;
+            blueLed = 0;
             break;
         
         default:
-            greenLed = 1;
+            blueLed = 1;
             count = -1;
             buzz_tick();
             test_ticker.detach();
@@ -167,8 +167,8 @@
     redLed = 0;
     AccVcc = 1;
     
+    greenLed = 1;
     blueLed = 1;
-    greenLed = 1;
     wait_ms(POWER_UP_DELAY_MS);
 
     /*
--- a/source/main.h	Tue Mar 13 15:41:35 2018 +0000
+++ b/source/main.h	Wed Mar 14 08:48:26 2018 +0000
@@ -36,7 +36,9 @@
     #define INT_PIN1            (p16)
     #define INT_PIN2            (p15)
     #define ACC_POWER_PIN       (p11)
-    #define RED_LED_PIN         (p22)
+    #define RED_LED_PIN         (p31)   //p22
+    #define GREEN_LED_PIN       (p2)
+    #define BLUE_LED_PIN        (p3)
     #define BUZZER_PIN          (p18)
 #endif
 
@@ -78,8 +80,8 @@
 DigitalOut AccVcc(ACC_POWER_PIN);
 DigitalOut redLed(RED_LED_PIN);
 #if NANO_MODULE == 0
-DigitalOut blueLed(PIN_LED_BLUE);
-DigitalOut greenLed(PIN_LED_GREEN);
+DigitalOut greenLed(GREEN_LED_PIN);
+DigitalOut blueLed(BLUE_LED_PIN);
 #endif
 InterruptIn INT1(INT_PIN1);
 //InterruptIn INT2(INT_PIN2);