aaaaa

Dependencies:   mbed Servo

Committer:
Ryosei
Date:
Thu Feb 21 10:06:09 2019 +0000
Revision:
10:53a92f2ab1c4
Parent:
9:6901b1dfa688
unkounko

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[];
t_yamamoto 0:562021ed1ba9 7
t_yamamoto 0:562021ed1ba9 8 namespace SWITCH
t_yamamoto 0:562021ed1ba9 9 {
Ryosei 10:53a92f2ab1c4 10 #define LIMITSW0_PIN A7
Ryosei 10:53a92f2ab1c4 11 #define LIMITSW1_PIN A6
Ryosei 10:53a92f2ab1c4 12 // #define LIMITSW2_PIN A5
Ryosei 10:53a92f2ab1c4 13 // #define LIMITSW3_PIN A4
t_yamamoto 0:562021ed1ba9 14
Ryosei 10:53a92f2ab1c4 15 #define MOUNTING_LIMITSW_NUM 2
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
Ryosei 10:53a92f2ab1c4 25 #endif