Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 10:df37742f32d6, committed 2016-08-14
- Comitter:
- daw9000
- Date:
- Sun Aug 14 11:45:28 2016 +0000
- Parent:
- 9:bdd9f7843282
- Child:
- 11:af318f7ab8d3
- Commit message:
- #1;
Changed in this revision
| README.md | Show annotated file Show diff for this revision Revisions of this file |
| module.json | Show diff for this revision Revisions of this file |
--- a/README.md Sun Aug 14 10:31:41 2016 +0000 +++ b/README.md Sun Aug 14 11:45:28 2016 +0000 @@ -1,12 +1,43 @@ -# microbit-starter +##MicroBit-rtc_ds3231 +##Clock + +Copyright David Wright 2016. DAW9000. +Feel free to copy, ammend , or do what you will but a shout out would be nice :) -An example programs using the micro:bit runtime. + +This program uses the Maxim Integrated DS3231 library to create a BBC MicroBit +Clock. Requires a DS3231 Real Time clock connected to pin 19 and 20. + +Recommended that an edge connector is used for DS3231 connection. -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. +Program will display :- + Date then Time then Temp (from DS3231 not MicroBit as it seems for + accurate as to ambient temp.) + Pressing Button B and keeping it pressed between rotations ie at the end + of each display cycle will change mode cyclically. + 1. Date, Time, Temp + 2. Date only. + 3. Time only. + 4. Temp only. +I am sure better things can be done here! Improvements welcome. + +Pressing Buttons A and B together and keeping pressed as above will take +you into clock setting mode. +Clock is set :- +Year, Month, Day, Hour, Minute, Second, Day of Week (1 to 7 eg Sun=7 but you can +make any day the start of week ie Sun=1). +Setting is done after DATE and again after TIME. So if only setting date +you can abort after the msg "Date Set". + +If in setting mode abort changes by powering off at any time. + +This again can be improved .... not the easiest to set date and time with +no keypad and limited screen! + +DS3231 has 2 alarms, so alarm clock feature with speaker/music attached to +MicroBit is a good future mod. + + developed by daw9000. no copywrite, free for whatever...
--- a/module.json Sun Aug 14 10:31:41 2016 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-{
- "name": "microbit-samples",
- "version": "0.0.1",
- "description": "The micro:bit runtime common abstraction with examples.",
- "license": "MIT",
- "dependencies": {
- "microbit": "lancaster-university/microbit#master"
- },
- "targetDependencies": {},
- "bin": "./source"
-}