Mac Lobdell
/
2_two_buttons
for testing
Fork of 2_two_buttons by
Diff: main.cpp
- Revision:
- 1:83ad95149534
- Parent:
- 0:49e04b14e729
--- 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() {