Mac Lobdell
/
2_two_buttons
for testing
Fork of 2_two_buttons by
Revision 1:83ad95149534, committed 2016-05-10
- Comitter:
- maclobski
- Date:
- Tue May 10 15:12:12 2016 +0000
- Parent:
- 0:49e04b14e729
- Commit message:
- for testing
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon May 09 19:49:13 2016 +0000 +++ b/main.cpp Tue May 10 15:12:12 2016 +0000 @@ -7,6 +7,14 @@ InterruptIn btn3(SW3); // we create a variable 'btn3', use it as an in port // YOUR CODE HERE +//REMOVE +static void toggle_red() { + red = !red; +} +static void toggle_green() { + green = !green; +} +//END REMOVE // this code runs when the microcontroller starts up int main() {