Trigger to set FSM_Count Down.

Dependencies:   mbed

Fork of 2645_FSM_UpDown_Counter by Craig Evans

Files at this revision

API Documentation at this revision

Comitter:
bonnyngangu
Date:
Thu May 12 03:21:02 2016 +0000
Parent:
0:c5278b91719f
Commit message:
Trigger to set FSM_Count Down.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r c5278b91719f -r d5ac6f4a196d main.cpp
--- a/main.cpp	Thu Jan 07 10:00:24 2016 +0000
+++ b/main.cpp	Thu May 12 03:21:02 2016 +0000
@@ -1,12 +1,12 @@
 /*
 
-2645_FSM_UpDown_Counter
+Task2_FSM_UpDown_Counter
 
 Sample code from ELEC2645 Week 16 Lab
 
 Demonstrates how to implement a simple FSM up/down counter
 
-(c) Craig A. Evans, University of Leeds, Jan 2016
+(c) Bonny Ngangu, University of Leeds, Jan 2016
 
 */
 
@@ -21,7 +21,7 @@
 // K64F on-board LEDs
 DigitalOut r_led(LED_RED);
 DigitalOut g_led(LED_GREEN);
-DigitalOut b_led(LED_BLUE);
+DigitalOut y_led(LED_BLUE);
 // K64F on-board switches
 InterruptIn sw2(SW2);
 InterruptIn sw3(SW3);
@@ -137,7 +137,7 @@
     // on-board LEDs are active-low, so set pin high to turn them off.
     r_led = 1;
     g_led = 1;
-    b_led = 1;
+    y_led = 1;
 
     // since the on-board switches have external pull-ups, we should disable the internal pull-down
     // resistors that are enabled by default using InterruptIn