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.
Control/Controller/Controller.h@20:6fbf1f50abda, 2016-05-30 (annotated)
- Committer:
- shimogamo
- Date:
- Mon May 30 07:19:34 2016 +0000
- Revision:
- 20:6fbf1f50abda
Servo??????????, Joystick???
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| shimogamo | 20:6fbf1f50abda | 1 | #ifndef _INC_Controller |
| shimogamo | 20:6fbf1f50abda | 2 | #define _INC_Controller |
| shimogamo | 20:6fbf1f50abda | 3 | #include "mbed.h" |
| shimogamo | 20:6fbf1f50abda | 4 | |
| shimogamo | 20:6fbf1f50abda | 5 | |
| shimogamo | 20:6fbf1f50abda | 6 | class Controller { |
| shimogamo | 20:6fbf1f50abda | 7 | AnalogIn controller; |
| shimogamo | 20:6fbf1f50abda | 8 | bool isInversed; |
| shimogamo | 20:6fbf1f50abda | 9 | |
| shimogamo | 20:6fbf1f50abda | 10 | public: |
| shimogamo | 20:6fbf1f50abda | 11 | Controller(PinName p); |
| shimogamo | 20:6fbf1f50abda | 12 | void inverse(); |
| shimogamo | 20:6fbf1f50abda | 13 | float read(); |
| shimogamo | 20:6fbf1f50abda | 14 | }; |
| shimogamo | 20:6fbf1f50abda | 15 | |
| shimogamo | 20:6fbf1f50abda | 16 | #endif |