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
Fork of circle_war_ver_A_NUCLEO_ by
pin_file.h@9:92ddadd9e9a9, 2016-04-04 (annotated)
- Committer:
- username16248
- Date:
- Mon Apr 04 07:20:24 2016 +0000
- Revision:
- 9:92ddadd9e9a9
- Parent:
- 8:554e3d643b2d
- Child:
- 14:3403ce49a37a
???????????????
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
baba2357 | 0:fad5ae05b576 | 1 | #ifndef PIN_FILE_H |
baba2357 | 0:fad5ae05b576 | 2 | #define PIN_FILE_H |
baba2357 | 0:fad5ae05b576 | 3 | |
baba2357 | 0:fad5ae05b576 | 4 | //速度制御 |
username16248 | 9:92ddadd9e9a9 | 5 | #define EC1_a PC_2 |
username16248 | 9:92ddadd9e9a9 | 6 | #define EC1_b PC_3 |
username16248 | 9:92ddadd9e9a9 | 7 | #define EC2_a PA_15 |
username16248 | 9:92ddadd9e9a9 | 8 | #define EC2_b PC_13 |
username16248 | 9:92ddadd9e9a9 | 9 | #define EC3_a PC_10 |
username16248 | 9:92ddadd9e9a9 | 10 | #define EC3_b PC_12 |
username16248 | 9:92ddadd9e9a9 | 11 | //InterruptIn a(PC_2); |
username16248 | 9:92ddadd9e9a9 | 12 | //InterruptIn b(PC_3); |
username16248 | 9:92ddadd9e9a9 | 13 | //InterruptIn c(PA_15); |
username16248 | 9:92ddadd9e9a9 | 14 | //InterruptIn d(PC_13); |
username16248 | 9:92ddadd9e9a9 | 15 | //InterruptIn e(PC_10); |
username16248 | 9:92ddadd9e9a9 | 16 | //InterruptIn f(PC_12); |
username16248 | 9:92ddadd9e9a9 | 17 | #define WHf1 PB_8 |
username16248 | 9:92ddadd9e9a9 | 18 | #define WHf2 PB_9 |
username16248 | 9:92ddadd9e9a9 | 19 | #define WHr1 PB_6 |
username16248 | 9:92ddadd9e9a9 | 20 | #define WHr2 PA_9 |
username16248 | 9:92ddadd9e9a9 | 21 | #define WHl1 PA_8 |
username16248 | 9:92ddadd9e9a9 | 22 | #define WHl2 PB_10 |
username16248 | 9:92ddadd9e9a9 | 23 | //PwmOut g(PB_8); |
username16248 | 9:92ddadd9e9a9 | 24 | //PwmOut h(PB_9); |
username16248 | 9:92ddadd9e9a9 | 25 | //PwmOut i(PB_6); |
username16248 | 9:92ddadd9e9a9 | 26 | //PwmOut j(PA_9); |
username16248 | 9:92ddadd9e9a9 | 27 | //PwmOut k(PA_8); |
username16248 | 9:92ddadd9e9a9 | 28 | //PwmOut l(PB_10); |
baba2357 | 0:fad5ae05b576 | 29 | //自己位置 |
username16248 | 6:bb86e2999be0 | 30 | InterruptIn m(PC_7); |
username16248 | 6:bb86e2999be0 | 31 | InterruptIn n(PC_11); |
username16248 | 6:bb86e2999be0 | 32 | InterruptIn o(PC_1); |
username16248 | 6:bb86e2999be0 | 33 | InterruptIn p(PC_0); |
baba2357 | 0:fad5ae05b576 | 34 | //上下機構&アーム |
username16248 | 6:bb86e2999be0 | 35 | InterruptIn q(PC_8); |
username16248 | 6:bb86e2999be0 | 36 | InterruptIn r(PC_6); |
baba2357 | 8:554e3d643b2d | 37 | PwmOut up(PB_4); |
baba2357 | 8:554e3d643b2d | 38 | PwmOut down(PB_5); |
baba2357 | 8:554e3d643b2d | 39 | DigitalOut Cilinder(PB_7); |
baba2357 | 0:fad5ae05b576 | 40 | //SPI mbed |
baba2357 | 8:554e3d643b2d | 41 | SPISlave from_mbed(PA_7, PA_6, PA_5, PA_4); |
baba2357 | 0:fad5ae05b576 | 42 | //SPI NUCLEO |
baba2357 | 8:554e3d643b2d | 43 | SPISlave from_gyro(PB_15, PB_14, PB_13, PB_12); |
baba2357 | 0:fad5ae05b576 | 44 | //赤外線・超音波 |
username16248 | 6:bb86e2999be0 | 45 | AnalogIn v(PA_1); |
username16248 | 6:bb86e2999be0 | 46 | AnalogIn w(PB_1); |
baba2357 | 8:554e3d643b2d | 47 | DigitalInOut x(PC_4); |
baba2357 | 1:86d25c1c4bd5 | 48 | //自動切り替え |
username16248 | 6:bb86e2999be0 | 49 | DigitalIn y(PA_12); |
username16248 | 6:bb86e2999be0 | 50 | #endif |