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.
Fork of reScale by
reScale.h@0:04d95412bcd3, 2014-03-03 (annotated)
- Committer:
- c0ax
- Date:
- Mon Mar 03 19:43:51 2014 +0000
- Revision:
- 0:04d95412bcd3
- Child:
- 2:457c3e6a7c13
Initial release
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| c0ax | 0:04d95412bcd3 | 1 | #include "mbed.h" |
| c0ax | 0:04d95412bcd3 | 2 | |
| c0ax | 0:04d95412bcd3 | 3 | class reScale { |
| c0ax | 0:04d95412bcd3 | 4 | public: |
| c0ax | 0:04d95412bcd3 | 5 | reScale(long in_min, long in_max, long out_min, long out_max); |
| c0ax | 0:04d95412bcd3 | 6 | |
| c0ax | 0:04d95412bcd3 | 7 | long from(long value); |
| c0ax | 0:04d95412bcd3 | 8 | protected: |
| c0ax | 0:04d95412bcd3 | 9 | long _inMin ,_inMax ,_outMin ,_outMax ; |
| c0ax | 0:04d95412bcd3 | 10 | }; |
