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.
pot/pot.cpp@10:4dd96f046784, 2016-11-14 (annotated)
- Committer:
 - Snay22
 - Date:
 - Mon Nov 14 02:45:28 2016 +0000
 - Revision:
 - 10:4dd96f046784
 - Parent:
 - 8:2abfdbf5a3b8
 - Child:
 - 12:65392ee77300
 
changed pot to 340 to account for 20 degree blank;
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| dlweakley | 8:2abfdbf5a3b8 | 1 | #include "mbed.h" | 
| dlweakley | 8:2abfdbf5a3b8 | 2 | #include "pot.h" | 
| dlweakley | 8:2abfdbf5a3b8 | 3 | |
| dlweakley | 8:2abfdbf5a3b8 | 4 | Pot::Pot(PinName _pin) : angle(_pin) { | 
| dlweakley | 8:2abfdbf5a3b8 | 5 | |
| dlweakley | 8:2abfdbf5a3b8 | 6 | } | 
| dlweakley | 8:2abfdbf5a3b8 | 7 | |
| dlweakley | 8:2abfdbf5a3b8 | 8 | float Pot::get_angle(){ | 
| Snay22 | 10:4dd96f046784 | 9 | float a = angle.read()*340; | 
| dlweakley | 8:2abfdbf5a3b8 | 10 | return a; | 
| dlweakley | 8:2abfdbf5a3b8 | 11 | } |