Lib for Bulme Bertl

Dependents:   BertlPingPong BertlTemplate LineSensTest MotorTest2 ... more

Files at this revision

API Documentation at this revision

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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+