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.
Diff: pot/pot.h
- Revision:
- 11:ed9539245ea0
- Parent:
- 8:2abfdbf5a3b8
- Child:
- 20:8063c82bbb35
--- a/pot/pot.h Fri Nov 11 21:25:31 2016 +0000
+++ b/pot/pot.h Mon Nov 14 20:57:21 2016 +0000
@@ -5,11 +5,14 @@
class Pot {
public:
- Pot(PinName angle);
+ Pot(PinName angle, int offset);
float get_angle();
+ float get_voltage();
+ void set_offset(int angle);
private:
AnalogIn angle;
+ int offset;
};