aaaaa

Dependencies:   mbed Servo

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?

UserRevisionLine numberNew 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