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:6901b1dfa688, 2019-02-18 (annotated)
- Committer:
- Ryosei
- Date:
- Mon Feb 18 05:40:03 2019 +0000
- Revision:
- 9:6901b1dfa688
- Parent:
- 1:e73cf2469f83
- Child:
- 10:53a92f2ab1c4
unko
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[]; |
| Ryosei | 9:6901b1dfa688 | 7 | extern DigitalOut AIR[]; |
| t_yamamoto | 0:562021ed1ba9 | 8 | |
| t_yamamoto | 0:562021ed1ba9 | 9 | namespace SWITCH |
| t_yamamoto | 0:562021ed1ba9 | 10 | { |
| Ryosei | 9:6901b1dfa688 | 11 | #define AIR1_PIN A7 |
| Ryosei | 9:6901b1dfa688 | 12 | #define AIR2_PIN A6 |
| t_yamamoto | 1:e73cf2469f83 | 13 | #define LIMITSW2_PIN A5 |
| t_yamamoto | 1:e73cf2469f83 | 14 | #define LIMITSW3_PIN A4 |
| t_yamamoto | 0:562021ed1ba9 | 15 | |
| t_yamamoto | 1:e73cf2469f83 | 16 | #define MOUNTING_LIMITSW_NUM 4 |
| t_yamamoto | 0:562021ed1ba9 | 17 | |
| t_yamamoto | 0:562021ed1ba9 | 18 | class Switch |
| t_yamamoto | 0:562021ed1ba9 | 19 | { |
| t_yamamoto | 0:562021ed1ba9 | 20 | public: |
| t_yamamoto | 0:562021ed1ba9 | 21 | static void Initialize(void); |
| t_yamamoto | 0:562021ed1ba9 | 22 | static bool checkPushed(int mySwitch); |
| t_yamamoto | 0:562021ed1ba9 | 23 | }; |
| Ryosei | 9:6901b1dfa688 | 24 | |
| t_yamamoto | 0:562021ed1ba9 | 25 | } |
| t_yamamoto | 0:562021ed1ba9 | 26 | |
| Ryosei | 9:6901b1dfa688 | 27 | |
| Ryosei | 9:6901b1dfa688 | 28 | |
| Ryosei | 9:6901b1dfa688 | 29 | |
| Ryosei | 9:6901b1dfa688 | 30 | |
| t_yamamoto | 0:562021ed1ba9 | 31 | #endif |