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.
Dependents: BertlPingPong BertlTemplate LineSensTest MotorTest2 ... more
Revision 2:16a5d3302ddb, committed 2015-02-24
- Comitter:
- hollegha2
- Date:
- Tue Feb 24 03:47:04 2015 +0000
- Parent:
- 0:e0131e671ea0
- Child:
- 3:f8f0f86e3749
- Commit message:
- Add AnalogIn
Changed in this revision
| Bertl14.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Bertl14.h Fri Apr 25 14:35:21 2014 +0000
+++ b/Bertl14.h Tue Feb 24 03:47:04 2015 +0000
@@ -97,4 +97,37 @@
float distCM;
};
+#ifndef ANALOGIN_HL
+#define ANALOGIN_HL
+class AnalogInHL : public AnalogIn {
+ public:
+ AnalogInHL(PinName pin) : AnalogIn(pin) { }
+ int Read()
+ { return read_u16()>>6; }
+};
#endif
+
+#endif
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+