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: ST7032 QEI PS4Serial
Dependents: 2021Arobo_UMAPYOI 2021Arobo_YUMIPYOI
cerica2.h@2:3657788ab5fd, 2018-09-19 (annotated)
- Committer:
- Suzutomo
- Date:
- Wed Sep 19 10:04:49 2018 +0000
- Revision:
- 2:3657788ab5fd
- Parent:
- 1:019a7d4201c2
- Child:
- 3:72c7158376db
define new
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Suzutomo | 0:a1d2ea7aa5c6 | 1 | #include "SB1602E.h" |
| Suzutomo | 0:a1d2ea7aa5c6 | 2 | #include "PS4Serial.h" |
| Suzutomo | 0:a1d2ea7aa5c6 | 3 | #include "perica3.h" |
| Suzutomo | 0:a1d2ea7aa5c6 | 4 | |
| Suzutomo | 0:a1d2ea7aa5c6 | 5 | enum WireSel { |
| Suzutomo | 0:a1d2ea7aa5c6 | 6 | FEP01,TweLite |
| Suzutomo | 0:a1d2ea7aa5c6 | 7 | }; |
| Suzutomo | 1:019a7d4201c2 | 8 | |
| Suzutomo | 2:3657788ab5fd | 9 | #define GPIO0 PC_9 |
| Suzutomo | 2:3657788ab5fd | 10 | #define GPIO1 PA_5 |
| Suzutomo | 2:3657788ab5fd | 11 | #define GPIO2 PA_6 |
| Suzutomo | 2:3657788ab5fd | 12 | #define GPIO3 PA_7 |
| Suzutomo | 2:3657788ab5fd | 13 | #define GPIO4 PB_6 |
| Suzutomo | 2:3657788ab5fd | 14 | #define GPIO5 PC_7 |
| Suzutomo | 2:3657788ab5fd | 15 | #define GPIO6 PA_8 |
| Suzutomo | 2:3657788ab5fd | 16 | #define GPIO7 PB_10 |
| Suzutomo | 2:3657788ab5fd | 17 | #define GPIO8 PB_13 |
| Suzutomo | 2:3657788ab5fd | 18 | #define GPIO9 PB_14 |
| Suzutomo | 2:3657788ab5fd | 19 | #define GPIO10 PB_15 |
| Suzutomo | 2:3657788ab5fd | 20 | #define GPIO11 PB_1 |
| Suzutomo | 2:3657788ab5fd | 21 | #define GPIO12 PB_2 |
| Suzutomo | 2:3657788ab5fd | 22 | |
| Suzutomo | 0:a1d2ea7aa5c6 | 23 | class CERICA |
| Suzutomo | 0:a1d2ea7aa5c6 | 24 | { |
| Suzutomo | 0:a1d2ea7aa5c6 | 25 | private: |
| Suzutomo | 0:a1d2ea7aa5c6 | 26 | I2C i2c; |
| Suzutomo | 0:a1d2ea7aa5c6 | 27 | DigitalOut wireSelect; |
| Suzutomo | 0:a1d2ea7aa5c6 | 28 | |
| Suzutomo | 0:a1d2ea7aa5c6 | 29 | public: |
| Suzutomo | 0:a1d2ea7aa5c6 | 30 | SB1602E lcd; |
| Suzutomo | 0:a1d2ea7aa5c6 | 31 | PS4Serial PS4; |
| Suzutomo | 0:a1d2ea7aa5c6 | 32 | PERICA perica; |
| Suzutomo | 0:a1d2ea7aa5c6 | 33 | CERICA(WireSel WireSel_); |
| Suzutomo | 1:019a7d4201c2 | 34 | bool motor(char sendChannel,int verocity) {return perica.motor(sendChannel,verocity);} |
| Suzutomo | 0:a1d2ea7aa5c6 | 35 | }; |