A program for the BBC MicroBit that displays temperature and compass headings.
Revision 2:2f72859d7247, committed 2016-07-25
- Comitter:
- daw9000
- Date:
- Mon Jul 25 10:35:51 2016 +0000
- Parent:
- 1:ee422ede0e10
- Child:
- 3:4476ce40b910
- Commit message:
- Version 1.0.0
Changed in this revision
README.md | Show annotated file Show diff for this revision Revisions of this file |
source/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/README.md Mon Jul 25 10:27:10 2016 +0000 +++ b/README.md Mon Jul 25 10:35:51 2016 +0000 @@ -1,10 +1,14 @@ -# microbit-samples +# microbit-starter -A collection of example programs using the micro:bit runtime. +An example programs using the micro:bit runtime. -The source folder contains a selection of samples demonstrating the capabilities and usage of the runtime APIs. -To select a sample, edit the `MicroBitSamples.h` file in the source folder and uncomment the line matching the -sample you wish to use. Please be sure to note that only one sample is selected at a time. +Using microbit. +This program shows the Temperature which can be adjusted up or down to reflect true ambient temperature using B (down) and A (up). +Pressing A+B together changes mode from temperature to compass text heading display to compass heading graphic. Pressing A+B will circle around the three +modes. +Touching pins GND and P0 dims display, GND and P1 brightens display. GND and P2 shows actual device temperature. + +developed by daw9000. no copywrite, free for whatever... ## Overview
--- a/source/main.cpp Mon Jul 25 10:27:10 2016 +0000 +++ b/source/main.cpp Mon Jul 25 10:35:51 2016 +0000 @@ -11,7 +11,7 @@ and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The aboe copyright notice and this permission notice shall be included in +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR @@ -21,9 +21,16 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +Using the BBC MicroBit. +This program shows the Temperature which can be adjusted up or down to reflect true ambient temperature using B (down) and A (up). +Pressing A+B together changes mode from temperature to compass text heading display to compass heading graphic. Pressing A+B will circle around the three +modes. +Touching pins GND and P0 dims display, GND and P1 brightens display. GND and P2 shows actual device temperature. + +developed by daw9000. no copywrite, free for whatever... */ -/* program to display compass and temperature. screen brightness adjustable and temperature -is adjustable for setting offset with known temperature. */ #include "MicroBit.h"