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.
Input/Switch/Switch.h@9:10276c46b467, 2020-01-29 (annotated)
- Committer:
- yokotaharuki
- Date:
- Wed Jan 29 08:54:06 2020 +0000
- Revision:
- 9:10276c46b467
- Parent:
- 1:e73cf2469f83
aa;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| t_yamamoto | 0:562021ed1ba9 | 1 | #ifndef SWITCH_H_ |
| t_yamamoto | 0:562021ed1ba9 | 2 | #define SWITCH_H_ |
| t_yamamoto | 0:562021ed1ba9 | 3 | |
| t_yamamoto | 0:562021ed1ba9 | 4 | #include "mbed.h" |
| t_yamamoto | 0:562021ed1ba9 | 5 | |
| t_yamamoto | 0:562021ed1ba9 | 6 | extern DigitalIn limitSw[]; |
| t_yamamoto | 0:562021ed1ba9 | 7 | |
| t_yamamoto | 0:562021ed1ba9 | 8 | namespace SWITCH |
| t_yamamoto | 0:562021ed1ba9 | 9 | { |
| t_yamamoto | 1:e73cf2469f83 | 10 | #define LIMITSW0_PIN A7 |
| t_yamamoto | 1:e73cf2469f83 | 11 | #define LIMITSW1_PIN A6 |
| t_yamamoto | 1:e73cf2469f83 | 12 | #define LIMITSW2_PIN A5 |
| t_yamamoto | 1:e73cf2469f83 | 13 | #define LIMITSW3_PIN A4 |
| t_yamamoto | 0:562021ed1ba9 | 14 | |
| t_yamamoto | 1:e73cf2469f83 | 15 | #define MOUNTING_LIMITSW_NUM 4 |
| t_yamamoto | 0:562021ed1ba9 | 16 | |
| t_yamamoto | 0:562021ed1ba9 | 17 | class Switch |
| t_yamamoto | 0:562021ed1ba9 | 18 | { |
| t_yamamoto | 0:562021ed1ba9 | 19 | public: |
| t_yamamoto | 0:562021ed1ba9 | 20 | static void Initialize(void); |
| t_yamamoto | 0:562021ed1ba9 | 21 | static bool checkPushed(int mySwitch); |
| t_yamamoto | 0:562021ed1ba9 | 22 | }; |
| t_yamamoto | 0:562021ed1ba9 | 23 | } |
| t_yamamoto | 0:562021ed1ba9 | 24 | |
| t_yamamoto | 0:562021ed1ba9 | 25 | #endif |