Teaching Chloe C (and maybe C++) / Mbed 2 deprecated Exercise5

Dependencies:   mbed

Fork of Exercise5 by Andrew Brown

Files at this revision

API Documentation at this revision

Comitter:
drewantech
Date:
Mon Feb 24 14:06:14 2020 +0000
Parent:
1:245bc5eb1bbe
Commit message:
Exercise 5

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Feb 24 13:29:48 2020 +0000
+++ b/main.cpp	Mon Feb 24 14:06:14 2020 +0000
@@ -1,13 +1,9 @@
 #include "mbed.h"
 /****************************************************************
-In this exercise I would like you to make one function called "ToggleAll"
-this function should switch the state of the led from its current state 
-you can figure out the current state by typing "= led1;"
-in this function I expect to see and minimal lines of code as possible
+In this exercise a bit of if statment use!
 
-In the main function I expect to see the on and off functions replaced with this new one.
-
-best of luck.
+I would like you, whist using the function made in the prevoiuse exercise to make the yellow leds to count in binary and when the number is an odd number the red LED's 
+light up.
 ***************************************************************/
 
 // these functions initializes the led pins and functions associated with them these are technically c++ but dont worry to much about this yet