Mercurial > hg > beaglert
diff projects/basic_blink/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_blink/render.cpp Tue May 17 15:53:24 2016 +0100 +++ b/projects/basic_blink/render.cpp Tue May 17 18:46:55 2016 +0100 @@ -19,15 +19,17 @@ Blinking an LED --------------- -This sketch shows the simplest case of digital out. Connect an LED in series with -a 470ohm resistor between P8_07 and ground. The led is blinked on and off by -setting the digital pin `HIGH` and `LOW` every interval seconds (set it in the -`render()` function). +This sketch shows the simplest case of digital out. -Firstly the pin mode must be set to output mode: -`pinModeFrame(context, 0, P8_07, OUTPUT);` in the `setup()` function. The output -of the digital pins is set by the following code: -`digitalWriteFrame(context, n, P8_07, status);` where status can be equal to +- Connect an LED in series with a 470ohm resistor between P8_07 and ground. + +The led is blinked on and off by setting the digital pin `HIGH` and `LOW` every interval seconds which is set in +`render()`. + +In `setup()` the pin mode must be set to output mode via `pinModeFrame()`. For example: +`pinModeFrame(context, 0, P8_07, OUTPUT)`. +In `render()` the output of the digital pins is set by `digitalWriteFrame()`. For example: +`digitalWriteFrame(context, n, P8_07, status)` where `status` can be equal to either `HIGH` or `LOW`. When set `HIGH` the pin will give 3.3V, when set to `LOW` 0V.