Mercurial > hg > beaglert
diff projects/basic_button/render.cpp @ 285:5433c83ce04e Doxy prerelease
Doxygen content added to more project render.cpp files and amended in others.
author | Robert Jack <robert.h.jack@gmail.com> |
---|---|
date | Tue, 17 May 2016 18:46:55 +0100 |
parents | ac8eb07afcf5 |
children |
line wrap: on
line diff
--- a/projects/basic_button/render.cpp Tue May 17 15:53:24 2016 +0100 +++ b/projects/basic_button/render.cpp Tue May 17 18:46:55 2016 +0100 @@ -19,7 +19,7 @@ Switching an LED on and off --------------------------- -This sketch brings together digital out with digital in. The program will read +This example brings together digital input and digital output. The program will read a button and turn the LED on and off according to the state of the button. - connect an LED in series with a 470ohm resistor between P8_07 and ground. @@ -34,7 +34,7 @@ the button is pressed, P8_08 goes `LOW` and P8_07 is set to `LOW`, turning off the LED. As an exercise try and change the code so that the LED only turns on when -the button is pressed +the button is pressed. */