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.
Dependencies: mbed TrapezoidControl QEI Pulse LM61CIZ
Input/Encoder/Encoder.h@22:7d93f79a3686, 2019-09-17 (annotated)
- Committer:
- M_souta
- Date:
- Tue Sep 17 04:40:17 2019 +0000
- Revision:
- 22:7d93f79a3686
- Parent:
- 16:3f2c2d89372b
kkk
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| kishibekairohan | 16:3f2c2d89372b | 1 | #ifndef ENCODER_H_ |
| kishibekairohan | 16:3f2c2d89372b | 2 | #define ENCODER_H_ |
| 7ka884 | 1:b1219d8ca117 | 3 | |
| M_souta | 22:7d93f79a3686 | 4 | #include "QEI.h" |
| M_souta | 22:7d93f79a3686 | 5 | |
| M_souta | 22:7d93f79a3686 | 6 | extern QEI encoder[]; |
| M_souta | 22:7d93f79a3686 | 7 | |
| kishibekairohan | 16:3f2c2d89372b | 8 | namespace ENCODER { |
| kishibekairohan | 16:3f2c2d89372b | 9 | #define ECD_A_0 PB_1 |
| kishibekairohan | 16:3f2c2d89372b | 10 | #define ECD_A_1 PB_12 |
| kishibekairohan | 16:3f2c2d89372b | 11 | #define ECD_A_2 PC_4 |
| kishibekairohan | 16:3f2c2d89372b | 12 | #define ECD_A_3 PB_14 |
| 7ka884 | 1:b1219d8ca117 | 13 | |
| kishibekairohan | 16:3f2c2d89372b | 14 | #define ECD_B_0 PB_2 |
| kishibekairohan | 16:3f2c2d89372b | 15 | #define ECD_B_1 PA_11 |
| kishibekairohan | 16:3f2c2d89372b | 16 | #define ECD_B_2 PB_13 |
| kishibekairohan | 16:3f2c2d89372b | 17 | #define ECD_B_3 PB_15 |
| M_souta | 22:7d93f79a3686 | 18 | |
| 7ka884 | 1:b1219d8ca117 | 19 | |
| kishibekairohan | 16:3f2c2d89372b | 20 | class ECD { |
| 7ka884 | 1:b1219d8ca117 | 21 | public: |
| 7ka884 | 1:b1219d8ca117 | 22 | static void Initialize(); |
| 7ka884 | 1:b1219d8ca117 | 23 | }; |
| 7ka884 | 1:b1219d8ca117 | 24 | } |
| 7ka884 | 1:b1219d8ca117 | 25 | |
| 7ka884 | 1:b1219d8ca117 | 26 | #endif |